Author Topic: there I can find this code  (Read 7923 times)

Offline terror2012

  • Newbie
  • *
  • Posts: 11
  • Karma: +1/-0
    • View Profile
there I can find this code
« 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.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: there I can find this code
« Reply #1 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

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline terror2012

  • Newbie
  • *
  • Posts: 11
  • Karma: +1/-0
    • View Profile
Re: there I can find this code
« Reply #2 on: December 23, 2013, 03:23:59 PM »
no, he isn't here. I just check both files.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: there I can find this code
« Reply #3 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>
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline terror2012

  • Newbie
  • *
  • Posts: 11
  • Karma: +1/-0
    • View Profile
Re: there I can find this code
« Reply #4 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?

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +93/-1
    • View Profile
Re: there I can find this code
« Reply #5 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
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

Offline terror2012

  • Newbie
  • *
  • Posts: 11
  • Karma: +1/-0
    • View Profile
Re: there I can find this code
« Reply #6 on: December 24, 2013, 09:42:47 AM »
thanks. This helped me a lot.

 

Powered by SMFPacks Social Login Mod