Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Move qty box to the left of price and remove <br>

    On the product listing page I'd like to move the qty box to the left of the price, so the pricing would look like:

    [qty box] @ $6.99 ea. [add to cart image]

    (I'd really like that image to be a plain ol' html submit button that says "add to cart"...)

    I started fiddling with product_listing.php, but didn't get too far. Is that what I want to be editing? I think I successfully figured out how to remove the <br>, but I couldn't get the qty box moved.

    Thanks,
    Allison


  2. #2
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: Move qty box to the left of price and remove <br>

    Here's a link in case you need it...
    Cutting Tools

    And, um, if you get error messages when you try to view the page - that's 'cause I'm fiddling with the code... ......

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

    Default Re: Move qty box to the left of price and remove <br>

    If you look at the Configuration ... Product Listing ...

    0 = OFF and any other value is the Sort Order for each column in the row ...
    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!

  4. #4
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: Move qty box to the left of price and remove <br>

    Ok, I tried really hard, but I couldn't get the desired effect...

    I can change the "price" sort order and the "Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product)" sort order. But I can't slip the price IN BETWEEN the qty box and the add to cart button.

    Am I missing something?

    Any ideas on changing the image to type="submit"?

    Thanks a bunch!

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

    Default Re: Move qty box to the left of price and remove <br>

    Sorry ... answered too quick this afternoon ... I did not peek to see that you were using an override on the product listing ...
    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!

  6. #6
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: Move qty box to the left of price and remove <br>

    Oh, you're right. I guess that makes a difference! So should I have asked in a different topic area? Or can I still get help here?

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

    Default Re: Move qty box to the left of price and remove <br>

    You can ask here ... just would help if you would state what add-on you are using so that those who use it can help you better ...
    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!

  8. #8
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: Move qty box to the left of price and remove <br>

    column grid layout -v1.3.6
    ZenCart v1.3.6

    Sorry to leave out needed info.... I'm still learning all the rules and ropes....
    Although, I still haven't figured this out, I am still working on it.... Trial and error... LOTS of error. :|

  9. #9
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: Move qty box to the left of price and remove <br>



    I couldn't be happier!! I did it - and all by myself, too!!! A crash course in PHP, enough knowledge to really goof things up, and violla! - I got it!

    So - I've contented myself - it CAN be done! Here's a link to the "closer to finished" product - http://www.threesistersfabric.com/store/books-c-3.html

    I took this block of code (which I had already modified slightly to taste):

    $lc_button= zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($listing->fields['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $listing->fields['products_id']), 'post', 'enctype="multipart/form-data"') . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($listing->fields['products_id'])) . '" maxlength="6" size="4" />&nbsp;' . zen_draw_hidden_field('products_id', $listing->fields['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</form>';
    and inserted this starting at (and replacing) the bold &nbsp; above
    &nbsp;@ ' . zen_get_products_display_price($listing->fields['products_id']) . '&nbsp;ea.'
    I also commented out the price that was right below the product description:
    //$lc_price = zen_get_products_display_price($listing->fields['products_id']) . ' ';
    So! Now, if I've done something that really is not a good idea, would someone please tell me before I goof something up really bad??!!

    Thanks bunches!

    Now - on to figuring out how to change the add to cart image to a regular submit button......

    ~Allison

  10. #10
    Join Date
    Feb 2008
    Posts
    46
    Plugin Contributions
    0

    Default Re: Move qty box to the left of price and remove <br>

    sound good,but which file you edited?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139e How can I move the price field to the left
    By amnon_d in forum General Questions
    Replies: 1
    Last Post: 19 Mar 2012, 11:28 AM
  2. Centering Price and Qty Box
    By absoluteblock in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Oct 2011, 11:40 AM
  3. How to move the QTY box inlne with two attributes?
    By JasGot in forum Templates, Stylesheets, Page Layout
    Replies: 30
    Last Post: 19 Apr 2010, 05:23 PM
  4. Move the sidebox left to right and right to left(shrink the site)
    By navido in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 Nov 2009, 08:51 PM
  5. Remove original qty box and add my own option and input in description
    By ivogue in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 2 Mar 2009, 11:45 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