Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Multiple Product Details on Home Page
Author « Topic »  

dwmike
Starting Member

USA
6 Posts

Pre-sales questions only
(More Details...)

Posted - 10/20/2019 :  14:24:12  
Site: http://146.66.66.82/~toothbar/index.php

Issue: I am trying to bring in multiple products into the home page, using CSS tabs to separate them. Bringing in the first product is fine, using this code inside the tab div:

[code]<?php $explicitid="40.5-Clamp-On-Toothbar";?>
<?php include "vsadmin/inc/incproddetail.php"?>[/code]

That code successfully displays the first product in the first tab... When adding the 2nd product using:

[code]<?php $explicitid="43.5-Clamp-On-Toothbar";?>
<?php include "vsadmin/inc/incproddetail.php"?>[/code]

The site begins to throw this error (and others even if i try to exclude the pddsocialmedia function).

[quote]Fatal error: Cannot redeclare pddsocialmedia() (previously declared in /home/toothbar/public_html/vsadmin/inc/incproddetail.php:690) in /home/toothbar/public_html/vsadmin/inc/incproddetail.php on line 690[/quote]

Seems like calling 'incproddetails' multiple times is not going to work....

I am REALLY hoping that there is a workaround for displaying multiple products using the method above. I am also open to any workarounds that would let me place the products (individually) on the home page in the various tabs.

Thanks in advance for your help!!
Mike

Vince
Administrator

42425 Posts

Posted - 10/20/2019 :  14:39:30  
Hi Mike
The product detail page isn't designed to be used for displaying more than one product, and that is why you are getting the error. But why not just use the cross sell include file instead, and maybe use the "recommended" products setting to control which products are displayed on your home page?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

dwmike
Starting Member

USA
6 Posts

Pre-sales questions only
(More Details...)

Posted - 10/20/2019 :  14:59:08  
Thanks, Vince.

Not sure if either of the two ideas you had will fit in with my design as I am hoping to have the products displayed in different divs, as opposed to a block of recommended products....

Using the Cross sell include file: would I be able to choose which product would be displayed AND be able to display 9 products on the home page using this method?

What php would I need to enter into each one of the tabs?

If cross sell doesn't work, is there ANY way you can think of that will allow me to insert the products into the different tabs (and have prod details display/ability to purchase/unique prod reviews/etc)?

dbdave
ECT Moderator

USA
10243 Posts

Posted - 10/20/2019 :  16:59:14  
Mi Mike. here is a link to setting up the crosssell features - https://www.ecommercetemplates.com/help/ecommplus/cross-selling.asp
I think you want to use "recommended" on the home page because that will allow you to turn on and off which products show on the home page.

This link specifically addresses home page setup and has an example there - https://www.ecommercetemplates.com/help/home-page-display.asp

See where you get with the link there and post back if you are having problems setting it up.

Edited by - dbdave on 10/20/2019 17:00:47

dwmike
Starting Member

USA
6 Posts

Pre-sales questions only
(More Details...)

Posted - 10/20/2019 :  18:40:26  
Thanks, Dave.

I was able to get the Cross Sell set up and am trying to include these items:
[code]$csproductpagelayout='productname,productimage,instock,reviewstars,listprice,options,price,currency,addtocart,description,reviews';[/code]
This works fine except that 'reviewstars' doesn't show and 'reviews' generates this error: [code]UNKNOWN LAYOUT OPTION:reviews[/code]

Also, the prod images are showing with the next/prev buttons instead of thumbnails + Magicthumb zoom....

I would need both of these items to work (reviews with cross sell prods & image thumbs+Magicthumb) to continue trying to integrate the store like I wanted. If not, I think I will need to take a different approach.

Thanks!
Mike

Edited by - dwmike on 10/20/2019 18:41:38

Phil
ECT Moderator

United Kingdom
7609 Posts

Posted - 10/21/2019 :  03:36:37  
Hi Mike,
quote:

This works fine except that 'reviewstars' doesn't show and 'reviews' generates this error:

UNKNOWN LAYOUT OPTION:reviews


'reviews' is only for the product detail page, not the products page so that's why you're seeing that error message. I'm not too sure why your review stars aren't displaying, does that product have a review? Try adding this $ratingsonproductspage=TRUE;

quote:
Also, the prod images are showing with the next/prev buttons instead of thumbnails + Magicthumb zoom....


can you try adding the following as per here - https://www.ecommercetemplates.com/help/magictoolbox.asp#magicproduct
$magictoolboxproducts="MagicThumb";
$thumbnailsonproducts=TRUE;



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 10/21/2019 04:45:06

dwmike
Starting Member

USA
6 Posts

Pre-sales questions only
(More Details...)

Posted - 10/22/2019 :  17:57:23  
Decided to take advantage of product options and alt ids as alternate viable solution. Thanks all for your support!
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000