Awesome - that did the trick!!
...although now it says
Units: 0.01
Mixed *ON*
under the quantity box
Can I remove that through the admin?
Awesome - that did the trick!!
...although now it says
Units: 0.01
Mixed *ON*
under the quantity box
Can I remove that through the admin?
Find the function on the tpl_product_info_display.php for this and you could skip it for that products_id ...
zen_get_products_quantity_min_units_display
NOTE: be sure to use your templates and overrides directory ...
Last edited by Ajeh; 18 Aug 2006 at 02:12 PM. Reason: typo on filename
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!
Thanks so much for your patience and help with this. As I said, I'm not very technical, ao any assistance is very much appreciated.
I searched the developers toolkit and there doesn't seem to be a tpl_product_info_default.php but there is a tpl_product_info_display.php and a tpl_document_general_info_display.php that both have the zen_get_products_quantity_min_units_display . What exactly am I looking to change here, to me it all looks so complicated and I'm worried about changing the wrong thing (of course I do know to make a back-up first ;) )
I have been loking for three hours now and I haven't been able to find a templates and overrides directory in either the file system or the admin![]()
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Ah, so it's not a directory that's already there, I have to create one in my_template ?
I'm not quite clear on that. The info isn't very intuitive to technically-challenged people
I don't se anything there about the zen_get_products_quantity_min_units_display either, so I'm not sure what part of my question that link was meant for.
Last edited by dianna11; 18 Aug 2006 at 01:22 PM.
Sorry ... I meant to explain the link.
The link is a starting point of several links explaining the overrides system. Yes, you will have to create the new folder for the name of your template ... which could be "silkysoft", "brenda", "honeylemon", "supercalifragilisticexpialidocious" ... whatever you like, as long as you use it consistently.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
so, to add on to Ajeh's point ....
you have:
includes/templates/template_default/templates/tpl_product_info_display.php
copy that file to a new folder located at:
includes/templates/brenda/templates/tpl_product_info_display.php
edit the file
around line 101 you'll see:yes, this line can be a bit confusing.Code:$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
Change it by adding /* and */ like this:
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . /*zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . */ '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
HA! Thanks for explaining that :)
I didn't realize the my_template ('brenda', whatever) was the templates and overrides directory! I had that set up already, so just dropping the file in there wasn't a problem.
I made the changes in the right place and added the file to the directory, but the
Units: 0.01
*Mixed OFF
still shows up under the quantity box. Is there a reason I can't make the /* */ changes in includes/templates/template_default/templates/tpl_product_info_display.php ? I can't imagine any circumstances where I would want that Units thing showing up. Would that make the Unit: 0.01 etc go away?
...so I made the changes in the original includes/templates/template_default/templates/tpl_product_info_display.php and the Unit: ... thing goes away! WOO!
I guess it's not reading my override properly. Hrm.
The Unit: thing is still showing up in my cart though, would I add the same line in a tpl something about the cart.php?
yes, that was a typo on tpl_product_info_display.php ... glad DrByte was able to get you straightened out ...![]()
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!