Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Jan 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Gift certificate ammount?

    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?

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Gift certificate ammount?

    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!

  3. #13
    Join Date
    Jan 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Gift certificate ammount?

    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

  4. #14
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Gift certificate ammount?

    .

    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.

  5. #15
    Join Date
    Jan 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Gift certificate ammount?

    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.

  6. #16
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Gift certificate ammount?

    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.

  7. #17
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Gift certificate ammount?

    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:
    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);
    yes, this line can be a bit confusing.
    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.

  8. #18
    Join Date
    Jan 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Gift certificate ammount?

    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?

  9. #19
    Join Date
    Jan 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Gift certificate ammount?

    ...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?

  10. #20
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Gift certificate ammount?

    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!

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v150 Only show gift certificate option on payment page if customer has a gift certificate
    By ShopVille in forum Templates, Stylesheets, Page Layout
    Replies: 25
    Last Post: 21 Jul 2014, 08:03 PM
  2. Gift Certificate OK Queue, Doesn't send to Gift SENT
    By paperthreads in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 11 Sep 2008, 09:33 PM
  3. coupon for free gift with gift certificate purchase?
    By tkepler in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 24 Jul 2008, 03:31 PM
  4. Want to use a printed gift certificate (with code) in the gift certificate process?
    By HelenSama in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 9
    Last Post: 15 Apr 2008, 02:04 PM
  5. Gift Certificate Order with no Gift Certificate?
    By Jeff_Mash in forum Bug Reports
    Replies: 20
    Last Post: 14 Oct 2006, 09:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg