Forums / Templates, Stylesheets, Page Layout / Buy Now to More Info

Buy Now to More Info

Locked

Started by bjraines on 12 Dec 2006, 12:25 AM · Views: 2,186

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
12 Dec 2006, 12:25 AM
#1
bjraines avatar

bjraines

Zen Follower

Join Date:
Jun 2006
Posts:
223
Plugin Contributions:
0

Buy Now to More Info

I see how to change the quantity box to a Buy Now image buy changing the Display Mulitple Products Qty Box in Product Listings but what if I wanted to change this to a More Info Link or have both a Buy Now and a separate More Info button besides the title link?

12 Dec 2006, 8:22 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Buy Now to More Info

To be very brief, there will be a test in the product listing file (probably tpl_product_listing.php) for whether to display the buy now button or the more info... you can change or add to that test to have it always display the more info or both. There are various details and complications to consider.

If you don't know enough about PHP and the template override system to do this, someone can expand on the subject later.

12 Dec 2006, 1:26 PM
#3
bjraines avatar

bjraines

Zen Follower

Join Date:
Jun 2006
Posts:
223
Plugin Contributions:
0

Re: Buy Now to More Info

So there is not a config setting it is an actuall PHP edit?

12 Dec 2006, 2:01 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Buy Now to More Info

To change all Buy Now in the Product Listing to ... more info on all Products go to:

Configuration ... Product Listing ... and set to 0

Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product)
Do you want to display the Add to Cart Button?

NOTE: Turn OFF Display Multiple Products Qty Box Status to use Option 2 on with Qty Box per Product

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!

12 Dec 2006, 3:16 PM
#5
bjraines avatar

bjraines

Zen Follower

Join Date:
Jun 2006
Posts:
223
Plugin Contributions:
0

Re: Buy Now to More Info

Wow this is not at all obvious LOL.

Is it possible to display both?

12 Dec 2006, 3:37 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Buy Now to More Info

Both do display depending on whether or not the product has attributes by default ...

What is the criteria for when to show ... more info that you are trying to establish?

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!

12 Dec 2006, 3:45 PM
#7
bjraines avatar

bjraines

Zen Follower

Join Date:
Jun 2006
Posts:
223
Plugin Contributions:
0

Re: Buy Now to More Info

well take movies for instance. only part of the description displays. which is what i want. some buyers may want to read the whole description and need more info (yes they can click on the title but i like to assume nothing), some just want to buy it. So ideally I would like to have a buy now and a more info button on the product listing.

12 Dec 2006, 3:52 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Buy Now to More Info

You would need to customize the:
/includes/modules/product_listing.php

/includes/modules/your_template_dir/product_listing.php

to include the ... more info link

But you can change whether you have the quantity input box or individual add to cart buttons on the Configuration ... Product Listing ...

Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product)
Do you want to display the Add to Cart Button?

NOTE: Turn OFF Display Multiple Products Qty Box Status to use Option 2 on with Qty Box per Product

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!

27 Mar 2007, 7:55 PM
#9
mountain_mama avatar

mountain_mama

New Zenner

Join Date:
Nov 2006
Location:
8,600 ft in the Rocky Montains of Colorado
Posts:
23
Plugin Contributions:
0

Re: Buy Now to More Info

I also would like to add a more info link to all products on the product listing page even if they have no attributes. I would like it to appear below the price and above the quantity box for the add to cart button. I have looked over the files that you mentioned, but I have very little php and could not find a way to do this. Has anyone done this and can they send the code for me to cut and paste?

Any help would be much appreciated!

(Also, I'd like to add a link to the wish list as well. It was easy to do for the product info page, but I haven't found a way to do it below the add to cart box on the product listing page.)

Thank you. Hopefully, I won't always be a newbie!:smile:

28 Mar 2007, 3:18 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Buy Now to More Info

For no display of anything you can use the built in setting on the Configuration ... All Listing ...

Display Product Buy Now Button
Do you want to display the Product Buy Now Button

0= off
1st digit Left or Right
2nd and 3rd digit Sort Order
4th digit number of breaks after

To customize this to show the ... more info you would need to copy the file:
/includes/templates/template_default/templates/tpl_modules_products_all_listing.php

To your templates and overrides directory:
/includes/templates/your_template_dir/templates/tpl_modules_products_all_listing.php

Turn off the multiple quantity:

Display Multiple Products Qty Box Status and Set Button Location
Do you want to display Add Multiple Products Qty Box and Set Button Location?
0= off
1= Top
2= Bottom
3= Both

Then comment out line 100 and below it add the new line as displayed here:

//        $display_products_button = zen_get_buy_now_button($products_all->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($products_all->fields['products_id']) . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_BUY_NOW, 3, 1));
        $display_products_button = $products_link;

You could tweak this all further to manage Free, Call for Price etc. a little better ... but see if this works for you ...

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!