Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: how can html5 change price tag automatically with attributes options.  (Read 8122 times)

Offline kenania

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
when a price attribute added , the total price changes in the bottom, but not on top where the pricetagproduct image is. when that happen, it shows two different prices. Please Let me if can be done. Thanks in advance!

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: how can html5 change price tag automatically with attributes options.
« Reply #1 on: February 17, 2014, 05:33:34 PM »
Currently, if you select options with different price, there is a section for total price below.

If you need to change original price on option select with price modifier, you need to check JavaScript on product template files.

Look to:
storefront/view/default_html5/template/pages/product/product.tpl

Locate
Code: [Select]
function display_total_price() {
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 Diane

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: how can html5 change price tag automatically with attributes options.
« Reply #2 on: March 05, 2014, 10:09:17 PM »
I agree with kenania.

It would be nice to either override the "price tag icon" all together or at least be able to put text in it like "New" or " In Stock" or whatever.

The only way I've found right now to help customers understand the differences in the price of the different products is to add the word "ADD" after the price in the drop down/selectbox etc options.


example:
(Price on "price tag" icon)-- $2.50

(drop down/selectbox menu box #1)--2 fl oz
(drop down/selectbox menu box #2)--4 fl oz--ADD 

for the 2 oz leave "modify price" blank
for the 4 oz fill "modify price" by $1.50

----------------------------------------------------------------------

It winds up looking like this:
(Price on "price tag" icon)-- $2.50

(drop down menu box #1)--2 fl oz
(drop down menu box #2)--4 fl oz--ADD $1.50

the "blue price" at bottom shows-- $2.50 when the 2 oz is chosen and $4.00 when the 4 oz is chosen



__________________________________________

like I said though, I would like to have the option to put a "total/absolute price" in each drop down box and override the "modify price" situation all together if I choose, because in most situations it does confuse the customer.


gordontaylor

  • Guest
Re: how can html5 change price tag automatically with attributes options.
« Reply #3 on: March 06, 2014, 10:09:26 AM »
So I understand you, if someone adds, for example quantity of 2, the price above Add to Cart changes, but not in the price tag.

This would require some code modification in both the CSS and php in order to eliminate the price tag and it's price.

Offline RajaSarma

  • Jr. Member
  • **
  • Posts: 94
  • Karma: +3/-7
    • View Profile
Re: how can html5 change price tag automatically with attributes options.
« Reply #4 on: January 03, 2015, 06:28:34 AM »
It is very important to use Tags in a shopping website.
Like 'New' product tag, 'Discount' tag, or something like that.
But here is no any way to add a tag!
If it is possible to use tag image or icon, please tell me.

 

Powered by SMFPacks Social Login Mod