Jump to content

removed shipping from cart destroyed mobile version


Recommended Posts

I wanted to remove the shipping costs from the cart

 

so i went to the Blockcart.tpl and removed  

 

div class="cart-prices-block">

          <span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span>

                             <span>{l s='Shipping' mod='blockcart'}</span>

                             </div>

 

i also changed

 

<span id="cart_block_total" class="price ajax_block_cart_total">{$total}</span>

 

to

 

<span id="cart_block_total" class="price ajax_block_cart_product_total">{$product.total}</span>

 

 

i went to the ajax-cart.js and changed 

$('.ajax_block_cart_total').text(jsonData.total);

 

to product total

 

 

EVERYTHING WORKED VERY WELL BUT

 

the mobile version stopped working

 

it gave

 

Cart

0 Products product ( empty)

no products

 

 

any idea what happened to affect the mobile version

 

presta 1.5.4

Edited by david the developer (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...