Forums / Setting Up Categories, Products, Attributes / Can't get rid of price when priced by attribute

Can't get rid of price when priced by attribute

Started by avansant on 4 Feb 2014, 8:55 PM · Views: 2,463

Results 1 to 20 of 22
4 Feb 2014, 8:55 PM
#1
avansant avatar

avansant

Zen Follower

Join Date:
Aug 2004
Posts:
122
Plugin Contributions:
0

Can't get rid of price when priced by attribute

I have a cart that, if I set up a product as priced by attribute and price set to zero, the price disappears as it should:

http://www.cleosfineoils.com/shop/index.php?main_page=product_info&cPath=1_8&products_id=217

Unfortunately, that only applies to new products. All the products we imported through webgility, refuse to stop showing the price, even when it is set as "priced by attribute" and price set to zero.

http://www.cleosfineoils.com/shop/index.php?main_page=product_info&cPath=1_8&products_id=98

I've checked and double checked it 1000 times and combed the database, but I can't find what is turned ON for the second product that isn't in the first. It must be some default setting that came over with the import preventing us from turning off that price the usual way, but what?

Any help greatly appreciated!

5 Feb 2014, 1:24 AM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Can't get rid of price when priced by attribute

Without access to your admin, my guess is the price exists in the attributes controller or there's a custom code on the tpl_product_info_display.php.

Let me know.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

5 Feb 2014, 11:56 AM
#3
avansant avatar

avansant

Zen Follower

Join Date:
Aug 2004
Posts:
122
Plugin Contributions:
0

Re: Can't get rid of price when priced by attribute

Ah, you're totally right. We realized after getting away from the situation for a while that it had nothing to do with import - it was that the lowest attribute price was showing up as the price. That one that did NOT show the price just didn't have the attributes yet. Is there a way to edit the product template so that the price DOES show there (the main price area) if it is priced by price, but does NOT show there if it is priced by attribute?

5 Feb 2014, 12:02 PM
#4
avansant avatar

avansant

Zen Follower

Join Date:
Aug 2004
Posts:
122
Plugin Contributions:
0

Re: Can't get rid of price when priced by attribute

If this helps, pretty sure this is the code, but I can't seem to take anything out without the price not showing for regularly priced products as well.

<?php // base price if ($show_onetime_charges_description == 'true') { $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />'; } else { $one_time = ''; } echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']); ?>
5 Feb 2014, 2:49 PM
#5
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Can't get rid of price when priced by attribute

By default the code will see the product price if it's not set to priced by attributes. Did someone set every product to priced by attribute when they are not? Are there any import/export data modules installed?

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

5 Feb 2014, 2:55 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Can't get rid of price when priced by attribute

Price by Attribute is designed to use the lowest price in the Option Name/Value groups to make up the displayed price ...

If you do not want the Attributes used in calculating the displayed price, then you need to mark the Attribute not to be included in the base price ...

Include in Base Price
When Priced by Attributes

See if doing that will block the cheapest combined price from being displayed ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Feb 2014, 9:32 PM
#7
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Can't get rid of price when priced by attribute

Ajeh:

Price by Attribute is designed to use the lowest price in the Option Name/Value groups to make up the displayed price ...

If you do not want the Attributes used in calculating the displayed price, then you need to mark the Attribute not to be included in the base price ...

See if doing that will block the cheapest combined price from being displayed ...

I am trying to do something very similar but slightly different and I am sure this is somewhere but I can't seem to find the answer. I want to display the product price for display purposes but do not want the product price included in the shopping cart calculation when selecting attributes. For example a sofa and loveseat is displayed as $749. But buyers may want to just purchase only the sofa ($300) instead of the sofa and loveseat. However, when selecting the attribute of sofa, it adds the product price giving a total of $1049 instead of $300.

27 Feb 2014, 9:37 PM
#8
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Can't get rid of price when priced by attribute

Set the product to $0, priced by attributes to yes then set each attribute to have a price and be included in base price

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

27 Feb 2014, 10:08 PM
#9
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Can't get rid of price when priced by attribute

twitchtoo:

Set the product to $0, priced by attributes to yes then set each attribute to have a price and be included in base price I tried that but then it goes back to displaying the lower price only. I am trying to have it display the group price for display purposes but not include the base price in the calculation when selecting attributes at product info.

27 Feb 2014, 10:23 PM
#10
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Can't get rid of price when priced by attribute

Sounds like you need to use Twitch List Price, and change the wording :)

http://www.zen-cart.com/downloads.php?do=file&id=1772

Then you put the group price of the furniture in the 'list_price' field and the product and attributes work just as they should.

Change the display 'List Price: ' to whatever you'd like.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

27 Feb 2014, 11:11 PM
#11
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Can't get rid of price when priced by attribute

twitchtoo:

Sounds like you need to use Twitch List Price, and change the wording :)

http://www.zen-cart.com/downloads.php?do=file&id=1772

Then you put the group price of the furniture in the 'list_price' field and the product and attributes work just as they should.

Change the display 'List Price: ' to whatever you'd like.
Okay, I am going to give that a try this evening. I am currently using version 1.5.0, I am hoping that it will work with that version. I noticed it said 1.5.1. I may have questions this evening. Thanks for everything and I will keep you posted.

28 Feb 2014, 5:07 PM
#12
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Can't get rid of price when priced by attribute

twitchtoo:

Sounds like you need to use Twitch List Price, and change the wording :)

http://www.zen-cart.com/downloads.php?do=file&id=1772

Then you put the group price of the furniture in the 'list_price' field and the product and attributes work just as they should.

Change the display 'List Price: ' to whatever you'd like.

I just finished installing this mod and it is great! Thank you. One issue I am having is that I thought the price would show on the product listing page, but it's not displayed. It does display on the product info page. Anything I can do to have it display on the product listing pages? Thanks.

28 Feb 2014, 8:37 PM
#13
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Can't get rid of price when priced by attribute

Your donation is greatly appreciated, I'm putting the 'list_price on product listing' instruction package together for you now :)

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

1 Mar 2014, 3:49 AM
#14
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Can't get rid of price when priced by attribute

Great! Thank you I look forward to it.

1 Mar 2014, 4:43 PM
#15
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Can't get rid of price when priced by attribute

Creyesx6 - I emailed you the upgrade instructions, repackaged Twitch List Price and submitted the new version 14a.

Once approved you'll find it here:
http://www.zen-cart.com/downloads.php?do=file&id=1772

If you can't wait it's already available on my site :)

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

2 Mar 2014, 6:06 AM
#16
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Can't get rid of price when priced by attribute

twitchtoo:

Sounds like you need to use Twitch List Price, and change the wording :)

http://www.zen-cart.com/downloads.php?do=file&id=1772

Then you put the group price of the furniture in the 'list_price' field and the product and attributes work just as they should.

Change the display 'List Price: ' to whatever you'd like.

I made the changes according to the text file, but it's not showing up for some reason. I double checked my changes and they seem to be in order. In case it helpls any, the site I am working on is http://buy4lessfurniture.com. The item I placed the list price is the 1000 Key West (still shows on product info page).

Thanks again.

2 Mar 2014, 1:29 PM
#17
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Can't get rid of price when priced by attribute

I'm glad the installation worked... :)

The **template **(exodus) you are using in the example you posted is not using the *stock *Zen Cart files to display the product listing. The same is true for the advanced search.

You'll need to find the files the exo-viewport div is dynamically rendering and add the list price to it.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

2 Mar 2014, 1:29 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Can't get rid of price when priced by attribute

creyesx6, is this Product suppose to be $749 if I pick neither the sofa nor the love seat?

If not, then you should set the Product Price to 0.00 and mark it as Priced by Attribute ...

Now if the customer picks the Sofa, it will be $404 and if they pick the Loveseat it will be $345 and if they pick both it will be $749 ...

If you do not want to show the Price at all, on the Attributes mark them as:

Include in Base Price
When Priced by Attributes NO

If you DO want to show the Price on the Attributes mark them as:

Include in Base Price
When Priced by Attributes YES

Or, mark the one that you want to show as YES ...

NOTE: This is built into Zen Cart and should not require any addons to make this work ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Mar 2014, 3:39 PM
#19
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Can't get rid of price when priced by attribute

Ajeh:

creyesx6, is this Product suppose to be $749 if I pick neither the sofa nor the love seat?

If not, then you should set the Product Price to 0.00 and mark it as Priced by Attribute ...

Now if the customer picks the Sofa, it will be $404 and if they pick the Loveseat it will be $345 and if they pick both it will be $749 ...

If you do not want to show the Price at all, on the Attributes mark them as:

If you DO want to show the Price on the Attributes mark them as:

Or, mark the one that you want to show as YES ...

NOTE: This is built into Zen Cart and should not require any addons to make this work ...

Thanks for the response. The problem I ran into is, displaying the $749 price on the product listing pages and preventing it in the calculation if the customer selects one of the attributes.

For example, I want the buyer to view the group price if they buy both. However, for various reasons, the customer wants to instead buy 2 sofas or any other combination other than just the sofa and loveseat. When the customer selects let's say; sofa only, the group price of $749 is calculated in the shopping cart. The addon above is allowing the list price without calculating it in the shopping cart but still allows to display the group price. Now if I can just get that to work. I found the correct product listing pages but it's not displaying yet, going to research some more. Thanks again.

2 Mar 2014, 3:50 PM
#20
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Can't get rid of price when priced by attribute

What happens if you use:
Product Price 0.00
Price by Attribute: YES

then on the two Attributes set them both to:

Include in Base Price
When Priced by Attributes YES

This will show in the listings as $749 and in the Product Info as $749, but when the customer selects just the Sofa, they get $404 and if just the Loveseat they get $345 ...

The problem here, however, is if they select nothing then they have no charge ...

A possible solution is to use 2 Option Names such as:
Add Sofa
Add Loveseat

and make those Radiobuttons ...

Then on the Option Values create 3 for each Option Name:
Include this (or some such text)
Display Only YES
Default YES
Yes
No

and put the price on the Attribute for YES ...

What this does is force the customer to make a valid choice of YES or NO on the Sofa and/or Loveseat ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!