Zen Cart Logo
Forums / All Other Contributions/Addons / Buy now button in main page products

Buy now button in main page products

Views: 8,836

Results 21 to 29 of 29
1 Dec 2011, 6:58 PM
#21
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Buy now button in main page products

if you have an item is out of stock does it show "Sold Out" or "Out of Stock" on the main page?

26 Dec 2011, 5:13 PM
#22
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Buy now button in main page products

I have got the button on the main module but its in the wrong spot. I want it all the way to the bottom under the price like as follows:

Image
Item Name
Price
then the buy now button

How can I put the button at the bottom instead of the top?

12 Jan 2012, 3:04 PM
#23
windsurfer avatar

windsurfer

Zen Follower

Join Date:
Jun 2011
Posts:
185
Plugin Contributions:
0

Re: Buy now button in main page products

Tried to install this in V1.5 and no workie, is it not compatible with this version ?

2 Mar 2012, 4:25 PM
#24
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Buy now button in main page products

Is this compatible with v1.5 yet?

30 Apr 2012, 6:41 PM
#25
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: Buy now button in main page products

I loaded this code, but when I click the "buy now" it redirects me to the product page. how do I get it add the product to the shopping cart

30 Apr 2012, 9:05 PM
#26
ajeh avatar

ajeh

Oba-san

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

Re: Buy now button in main page products

Do your Products have attributes? If so, then you will be taken to the product _info page ...

9 May 2012, 5:52 PM
#27
kman55 avatar

kman55

New Zenner

Join Date:
Feb 2011
Location:
Washington, D.C.
Posts:
80
Plugin Contributions:
0

Re: Buy now button in main page products

I just installed this on ZC 1.5 and while it work, I seem to be having the same issue as others here. The BUY NOW button shows up above the product image/description etc. Sold out products show up with a Sold Out image but with a " > " symbol after the image. Are other folks having the same issue please share how they resolved it?Attachment 10440

5 Jul 2012, 3:07 AM
#28
cwlocal avatar

cwlocal

New Zenner

Join Date:
Jul 2011
Location:
UK
Posts:
1
Plugin Contributions:
0

Re: Buy now button in main page products

kman55:

I just installed this on ZC 1.5 and while it work, I seem to be having the same issue as others here. The BUY NOW button shows up above the product image/description etc. Sold out products show up with a Sold Out image but with a " > " symbol after the image. Are other folks having the same issue please share how they resolved it?Attachment 10440

Not sure if people are still looking for a solution. I have v1.5 installed from new. No mods, just a new template.
Try this, it works for me:

$specials_index->fields['products_name'] = zen_get_products_name($specials_index->fields['products_id']);
$list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsSpecials centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"','text' => (($specials_index->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . $productsInCategory[$specials_index->fields['products_id']] . '&products_id=' . (int)$specials_index->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $specials_index->fields['products_image'], $specials_index->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . $productsInCategory[$specials_index->fields['products_id']] . '&products_id=' . $specials_index->fields['products_id']) . '">' . $specials_index->fields['products_name'] . '</a><br />' . $products_price);

Buy now is below everything now. But, I would like to put a quantity inbox too just above buy now button. Any ideas?

3 Jan 2016, 10:09 PM
#29
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Buy now button in main page products

I am still trying to figure out. I am trying to get my Add to Cart button at the very bottom under the price. No luck yet. Anyone?

Attachment 15929