Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / [Newbie Angst] Price Not Showing Next to Attribute

[Newbie Angst] Price Not Showing Next to Attribute

Locked

Views: 5,532

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
29 May 2006, 3:24 PM
#1
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

[Newbie Angst] Price Not Showing Next to Attribute

Hey Folks,

Finally getting my head around this (thankfully), but am having a problem:

I've set a product to be PRICED BY ATTRIBUTES and then added the following

  1. Attribute Name = "# of Capsules"
  2. Attribute Value = "60 capsules"
  3. Attribute Value = "120" capsules"

The 60 Capsules value is set to be priced at 5.95, and the 120 Capsules is set to be priced at 10.10. I did this by adding those values to the PRICE field in each attribute value. I also removed the "+" symbol before the PRICE field, as these aren't prices being added to any default price, they're the price itself.

When viewing the resulting page, I get "Starting at: $5.95" which is fine, and then get:

Please Choose:

of Capsules

120 capsules ($0.00)
60 capsules ($0.00)

For the life of me, I can't figure out why the prices aren't showing up in the () next to the values themselves. Insofar as I can tell, this SHOULD be happening.

Anyone have any ideas?

Thanks,

Anthony

29 May 2006, 3:26 PM
#2
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Oh, a couple more items:

  1. In the Price Manager, the base price is set for $0.00, as it should be to have the pricing set by attributes. And again, the Set Price By Attributes selection is on for this product.

  2. When choosing a quantity and adding to a cart, the cart DOES show the proper price. It just doesn't seem to be displaying on the product page.

Thanks Again,

Anthony

29 May 2006, 7:02 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

What version of Zen Cart are you using? What template is it based on?

29 May 2006, 10:39 PM
#4
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Zen Cart 1.3.0.1

And the template I'm using is the Classic template, with just a few slight modifications.

29 May 2006, 11:14 PM
#5
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

And, for what it's worth, here are a couple of screen shots to show you how I've configured the product and the attributes in question:

The product admin screen for this product:
http://www.thinkbigideas.com/files/product.jpg

The attributes controller screen for this product:
http://www.thinkbigideas.com/files/attributes.jpg

Again: The proper price for each attribute carries over into the cart, so it's definitely set up and there. It also displays properly as the "Starting from" price.

It's just that the price for each of the two attributes set don't display on the product page. It only displays ($0.00) for each one of them on the product page.

I did a test, rolling back the original product_info_display.php page and tpl_modules_attributes.php page to make sure that I hadn't messed anything up, but I still show the same issue.

Am I missing something here? Was there a value to plug into the attributes controller that I missed?

29 May 2006, 11:29 PM
#6
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Another bit of info from some digging I did:

Thinking that there might be some kind of error in the attributes.php file (where much of the attribute logic is for creating the attribute lists for use in the product_info_display.php file, I tested out changing my current radio button list to a pull-down menu and checkbox selection list -- each of them carried over the same bug.

All prices next to each of the attributes were displayed as ($0.00)

30 May 2006, 6:23 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: [Newbie Angst] Price Not Showing Next to Attribute

Do you have an URL to your site?

30 May 2006, 8:42 PM
#8
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Ah, sure. Sorry -- should have included that with all the rest.

Here's a link to the product that I've set up attributes for. It's the only one in the store at the moment, so I could get it working properly and then reproduce across others.

http://store.lanisimpson.com/index.php?main_page=product_info&products_id=24

If you need anything else right away, please email me at [email protected]. I check that address regularly and will probably respond to it right away.

Thanks,

Anthony

30 May 2006, 8:46 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: [Newbie Angst] Price Not Showing Next to Attribute

Did you modify or customize the tpl_product_info_default.php

You may have changed the flow of the code on this page as adding it to the cart appears to work ...

How do you have the Attribute price configured for each Option Value?

30 May 2006, 10:18 PM
#10
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Hmm... I don't know.

I did edit tpl_product_info_display.php, but only to move the Attributes Module code segment above the "Add to Cart" code. The chunk of content moved is this:

<!--bof Attributes Module -->
<?php
  if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
 * display the product atributes
 */
  require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
  }
?>
<!--eof Attributes Module -->

I will, however, check to see if any changes were made to the other file.

As for how pricing was set up for the attributes, you can view screen shots of the configuration for each attribute (the 60 capsules and 120 capsules) by going here:

http://www.thinkbigideas.com/files/60capsules.jpg

http://www.thinkbigideas.com/files/120capsules.jpg

Here's a screenshot of the admin for the Product Price Manager for the product these attributes are tied to:

http://www.thinkbigideas.com/files/product_price.jpg

See anything amiss?

30 May 2006, 10:24 PM
#11
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Does tpl_product_info_default.php actually exist, or was that a typo? Downloaded another copy of Zen locally and did a search, but found no such file.

Did you mean tpl_product_info_display.php?

If not, where would I find this _default file?

Thx!

31 May 2006, 2:12 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: [Newbie Angst] Price Not Showing Next to Attribute

One of those multi-tasking errors ... tpl_product_info_display.php tpl_product_info_default.php ... the mind tends to wander ... :blink:

Are you using an overrides directory for your changes?

If so, can you rename your tpl_product_info_display.php in your overrides directory to:

tpl_product_info_display.php_HIDE

and see if it starts working again?

I can move that section as you stated and have no errors and the prices show ...

So we have to work backwards a bit and see is it your template or your product setup causing this ...

31 May 2006, 6:31 AM
#13
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Hey Ajeh,

Here's what I've done:

To make sure I didn't muck up the template override by editing any template_default or classic files, I redid all my overrides and then, from a clean download of Zend, re-uploaded and overwrote the following directories:

includes/modules
includes/templates/template_default
includes/templates/classic

I also changed

includes/template/template_lanisimpson/template/tpl_product_info_display.php

to

includes/template/template_lanisimpson/template/tpl_product_info_display.php_hide

and then copied into that directory a fresh (unedited/untouched) version of tpl_product_info_display.php. That's the file now running on this page:

http://store.lanisimpson.com/index.php?main_page=product_info&cPath=3&products_id=24

The file tpl_modules_attributes.php is also a fresh install from an untouched Zend build.

Sadly, still having the same problems as before -- NO CHANGE.

Any idea what other files are required to display attributes on a product page? Am assuming only

includes/modules/attributes.php

But that, again, is an untouched version from a fresh install of the entire modules directory (see above).

Any additional bug-checking thoughts?

Oh, and for what it's worth: I also changed the template from my version to the Classic default and still had the same problem. And from the reinstalls of the classic template outlined above, I don't think there are any remaining touched files on my end that would cause this kind of problem...

Awaiting any next steps/thoughts/mojo...

Cheers,

Anthony

31 May 2006, 3:14 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: [Newbie Angst] Price Not Showing Next to Attribute

Instead of copying the clean files to your override directories ...

Just rename your override files with the _HIDE

And these will not be there so the original files will run ...

Somewhere, one of these custom files is helping you a bit too much ... :blink:

8 Jun 2006, 10:51 PM
#15
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Ajeh:

Instead of copying the clean files to your override directories ...

Just rename your override files with the _HIDE

And these will not be there so the original files will run ...

Somewhere, one of these custom files is helping you a bit too much ... :blink:

Been a while since I followed up on this... still causing me grief.

Here's the latest update on this:

Here are the template overrides I've got going:

/store.lanisimpson.com/includes/templates/template_lanisimpson/templates/tpl_product_info_display.php

/store.lanisimpson.com/includes/templates/template_lanisimpson/templates/tpl_modules_attributes.php

Now, when I change these filenames to this:

tpl_modules_attributes.php_HIDE
tpl_product_info_display.php_HIDE

I get the following errors:

Warning: main(includes/templates/template_lanisimpson/templates/tpl_product_info_display.php): failed to open stream: No such file or directory in /home/.batzi/ecolani/store.lanisimpson.com/includes/modules/pages/product_info/main_template_vars.php on line 182

Warning: main(includes/templates/template_lanisimpson/templates/tpl_product_info_display.php): failed to open stream: No such file or directory in /home/.batzi/ecolani/store.lanisimpson.com/includes/modules/pages/product_info/main_template_vars.php on line 182

Fatal error: main(): Failed opening required 'includes/templates/template_lanisimpson/templates/tpl_product_info_display.php' (include_path='.:/usr/local/lib/php') in /home/.batzi/ecolani/store.lanisimpson.com/includes/modules/pages/product_info/main_template_vars.php on line 182

I'm assuming this isn't normal, is it?

When hiding my override templates, aren't the defaults supposed to display?

That said, for the entire site, I do have the template set to my lanisimpson template, not the Classic.

8 Jun 2006, 11:31 PM
#16
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Okay, this is getting nuts.

I am still getting this error in the Classic version, even though I've made sure to overwrite the template_defaults directory with files from a fresh download of Zend.

I don't want to reinstall everything, as I'm worried I'll lose preferences and so forth that were set in the Admin section.

What files can I overwrite without losing any extensions I've added (the wholesale module) and so forth? Everything but the admin directory?

/Ant

8 Jun 2006, 11:54 PM
#17
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Did check something I hadn't before: the Attibute Controller Preview. This, apparently, shows you what the pulldown/radio/checkbox form will look like as placed in your product page for any product with attributes defined.

Well, the attributes show up fine in the preview -- the prices actually show!

This means, insofar as I can tell, that there's something wrong with one of these files:

/includes/templates/template_default/templates/tpl_product_info_display.php
/includes/templates/template_default/templates/tpl_modules_attributes.php

I've replaced these files with copies from a fresh Zend ZIP archive that I downloaded as of today. They're completely unedited on my part.

Are there any other files that have any specific impact on an attributes menu in a product page?

Right now, I've reverted to the Classic template and so it should be calling the above files, as no Classic versions are specifically defined. Once I can get this actually working in the default mode, I'll then try and figure out what the difference is with my custom template.

Again, right now the proper attribute pulldown (with product prices) don't display in the Classic/Default template.

Here's an image of what the attribute pull-down should look like, according to the Attribute Controller preview:
http://www.thinkbigideas.com/files/attribute_preview.jpg

And here's what I'm actually getting:
http://store.lanisimpson.com/index.php?main_page=product_info&cPath=3&products_id=24

9 Jun 2006, 1:10 PM
#18
ajeh avatar

ajeh

Oba-san

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

Re: [Newbie Angst] Price Not Showing Next to Attribute

You have an add-on loaded for wholesale prices and this has changes to the:

/includes/functions/functions_prices.php

/includes/classes/shopping_cart.php

What happens if your rename those and load the original files from v1.3.0.1 ...

11 Jun 2006, 9:40 PM
#19
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Lordy!

Thanks for the digging! Since the shopping cart pricing works, I figured that it wasn't the shopping cart file you pointed to that could be the problem and so reverted the functions_prices.php file -- it solved the problem!

Once reverted back, the bug disappears and the pricing shows up properly.

Now, that said, I've got a new issue:

Wholesale pricing is a requirement.

Will have to find out what the issue is in the functions_prices.php file that causes this glitch. The products that we're adding attributes to will not have a wholesale price, so it shouldn't be a problem.

Hmm...

11 Jun 2006, 10:01 PM
#20
anthonybaker avatar

anthonybaker

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: [Newbie Angst] Price Not Showing Next to Attribute

Since this is now obviously an issue with the Dual Pricing (wholesale) add-on, I started searching around on it and found a few folks who've got the same issue as I.

It seems that, with Dual Pricing installed, any attribute-based pricing is hidden from users until they log in. Once logged in, the prices do show up next to the attribute item.

My issue is that while dual pricing is designed to hide wholesale prices until wholesale users log in (that's fine), one would think that all standard non-wholesale prices display properly. This appears to not be the case.

Have you gotten word from anyone else on this or know of a fix/workaround? The messages I've seen posted on this all lack any reply from the developer of the add-on (I've sent him a private message on the subject).

Thanks again for all your help so far!

Anthony