A
A
Alexander Rzhevsky2015-10-03 00:21:51
PHP
Alexander Rzhevsky, 2015-10-03 00:21:51

Conflict in php code. How to fix?

1) In the online store, when adding a product to the cart, the cart icon slides down and the "Show cart" link appears on top.
Here is the code.

<?php if ($data->totalProduct) echo  $data->cart_show; ?>
<div class="vmCartModule <?php echo $params->get('moduleclass_sfx'); ?>" id="vmCartModule">

As I understand it, the 1st line is responsible for the inscription "Show basket", and the 2nd line for the basket icon.
When the first line is deleted, the inscription disappears and everything falls into place, but the basket icon itself is not active, that is, it is not possible to go to the basket by clicking on it.
I'm not strong in php at all, I don't understand what to do. Somehow merge these two lines or what?
Hope for help.
For clarity, here is the site: https://esteting.ru/
Add any product to the cart and see.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Novikov, 2015-10-03
@bmw3bmw

delete the first line, and wrap the button with the cart icon in a link < a href="/cart" >...< /a >
but it's not good to wrap a div in < a >, but that's another question :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question