AbanteCart Community

Shopping Cart Operations => Support => Template Support => Topic started by: terror2012 on December 23, 2013, 09:39:36 AM

Title: there I can find this code
Post by: terror2012 on December 23, 2013, 09:39:36 AM
There I can find: <a data-id="145" href="#" class="productcart">Add to Cart</a>
I want to edit Add to Cart name on home page and product and I can't find this code.
It should be html file.
Title: Re: there I can find this code
Post by: abantecart on December 23, 2013, 03:01:44 PM
This can be in 2 places:
storefront/view/default_html5/template/blocks/product_list.tpl
storefront/view/default_html5/template/pages/product/product_listing.tpl

Title: Re: there I can find this code
Post by: terror2012 on December 23, 2013, 03:23:59 PM
no, he isn't here. I just check both files.
Title: Re: there I can find this code
Post by: abantecart on December 23, 2013, 10:33:56 PM
 :o

You did not notice it. Look again

Quote
                     <a data-id="<?php echo $product['product_id'] ?>" href="<?php echo $item['buy_url'] ?>" class="productcart"><?php echo $button_add_to_cart ?></a>
Title: Re: there I can find this code
Post by: terror2012 on December 24, 2013, 03:06:02 AM
this code I find but I need to edit "Add to Cart" from <a data-id="145" href="#" class="productcart">Add to Cart</a>
I want to customize my store and I want to change add to cart to CrackOut (add to cart is too default :D). How can I edit in  <a data-id="<?php echo $product['product_id'] ?>" href="<?php echo $item['buy_url'] ?>" class="productcart"><?php echo $button_add_to_cart ?></a> this text?
Title: Re: there I can find this code
Post by: eCommerce Core on December 24, 2013, 07:30:03 AM
If you intend to edit code, you need to have a slight understanding of PHP/HTML.
But I do not understand why you need to edit code to change text. Why not change it in admin language definition edit?

See help video


If you need to go more advanced with your modifications, you have 2 option below
1. Learn basic PHP/HTML
2. Ask someone who knows PHP/HTML to help you with edits.

Hope this helps
Title: Re: there I can find this code
Post by: terror2012 on December 24, 2013, 09:42:47 AM
thanks. This helped me a lot.