Active
Project:
Ubercart Ajax Attribute Calculations
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2008 at 19:51 UTC
Updated:
11 Aug 2011 at 19:35 UTC
Hello! Thank you very much for your work on this module! It works fantastic with ususal product nodes, but not working if you theme them.
Here is how I'm printing price and “Add to cart” button in node-product.tpl.php:
<div class="price">Price:<br /><?php print uc_currency_format($node->sell_price); ?></div>
<?php print $node->content['add_to_cart']["#value"]; ?>
Maybe I should do it in a different way?
Comments
Comment #1
jantoine commentedHi olenaumov,
This module requires that certain css classes be used in the div tag surrounding the prices. In your case, you are using the sell_price and should include the "sell_price" class in your div tag (see the code below). You can also use the "display_price" class.
Let me know if this doesn't solve your problem.
Cheers,
Jon Antoine
www.antoinesolutions.com
Open Source Development Tutorials & Documentation
Comment #2
jantoine commentedComment #3
olegnaumov commentedThank you very much for your suggestion, but unfortunately it didn't work for me..
But it still works with node-product.tpl.php removed.
You can check it out here: http://cdsouls.ru/cd/shorokh-or-2008
Kindly asking for more help.
Comment #4
olegnaumov commentedPlease, anyone?
Comment #5
cyu commentedDid you also follow instructions from the project page?
*This module requires product node divs have an identifier in the same form as the garland theme. For instance, trying to use bluemarine theme without adding the following code to node.tpl.php will result in the module not working.
Comment #6
olegnaumov commentedGuys, thank you! I've read the instructions, but I forgot to add that code. It works perfectly now!
Comment #7
benitezv1ang commentedPLEASE NEED HELP!!
I've spent a week trying to make Ajax Attribute Calculations work with node-product.tpl.php
I'm using bluemarine theme it works if i remove node-product.tpl.php. But does not work with node-product.tpl.php when is uploaded.
This modules I'm using
drupal 6.20
Ubercart 6.x-2.4
Ajax Attribute Calculations 6.x-2.1
This is what I have in node-product.tpl.php file
This is what I have in node.tpl file
Please help me. I will appreciate a lot.
Thanks
Comment #8
jday commentedthis is how I was able to get it to work with node-product.tpl.php
Comment #9
BigMike commented@ jday #8: I am using node-product.tpl.php and have confirmed that this works.
Thank you Sir,
BigMike