X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Variants on the Productlist (https://forum.x-cart.com/showthread.php?t=36132)

Jonjolt1 12-13-2007 06:37 AM

Variants on the Productlist
 
1 Attachment(s)
I think some people will appreciate this, cost me around $260 but I thought I'd share it. :mrgreen:

Don't use the Patch file, follow the install instructions and review the report .html file. :wink:

Jonjolt1 12-14-2007 05:45 AM

Re: Variants on the Productlist
 
Anyone got it working yet?

freelancer_gd 12-15-2007 11:26 AM

Re: Variants on the Productlist
 
any examples ?

Jonjolt1 12-15-2007 03:24 PM

Re: Variants on the Productlist
 
http://pleasantsmoke.com/home.php?cat=266

typologist 12-26-2007 05:46 PM

Re: Variants on the Productlist
 
Does it do what I think? Does it show the variants and allows to add to cart FROM the CATEGORY PAGE? If this is the case, i will give u a kiss! ;)

typologist 12-26-2007 06:27 PM

Re: Variants on the Productlist
 
Wow!! I installed and its awesome!

Notes: In order for this to work, you must have these options in admin:

- Display products list in multiple columns (1-3) 0
- Enable "Buy Now" button in the products list: Checked

Observations:
It makes your category pages load way slower (obvious!).

Wishlist:
1. I would love to have drop down menus with variants, instead of radio buttons, since they make the customer scroll a lot if you have many of them.
2. I would like to assign a special category, like "Buy fast" and list all products there, and use this mod only in that category.
3. It would be great that it would work if you have 3 or 2 columns format in your categories pages.

THANKS FOR SHARING! I owe u a kiss, lol.

Jonjolt1 12-28-2007 05:49 AM

Re: Variants on the Productlist
 
About loading slower, for some reason it was working fast with me then it slowed down. I think it might have to do with the template cache maybe. There is room for optimization but I havn't gotten to that stage so far.

Also the original design had a dropdown list but I had them change it to radio buttons. It code be reverted back with a few template changes.

Freakmode 01-17-2008 07:28 AM

Re: Variants on the Productlist
 
Has anyone got an example of this working I could see?

Also anyone got any further getting it to work on a 2 column product layout (that would be fantastic)

2coolbaby 02-05-2008 02:34 PM

Re: Variants on the Productlist
 
Question. The patch.diff shows this:

Quote:

Index: modules/Product_Options/customer_options.php
================================================== =================
diff -u modules/Product_Options/customer_options.php
--- modules/Product_Options/customer_options.php
+++ modules/Product_Options/customer_options.php
@@ -65,6 +65,7 @@ if (!empty($product_options) && !empty($

}

+if (!$dont_assign) {
if (!empty($product_options))
$smarty->assign("product_options",$product_options);

My customer_options.php file looks like this:

Quote:

if (!empty($product_options) && !empty($options) && is_array($options)) {


# Defined preselected options
foreach ($product_options as $k => $v) {
if (preg_match("/^\d+$/S", $options[$v['classid']])) {
if ($v['is_modifier'] == 'T') {
$product_options[$k]['default'] = $options[$v['classid']];
} else {
$product_options[$k]['options'][$options[$v['classid']]]['selected'] = 'Y';
}
} else {
$product_options[$k]['default'] = $options[$v['classid']];
}
}

}
Would I put the code after this line?:
Quote:

if (!empty($product_options) && !empty($options) && is_array($options)) {

intel352 02-06-2008 09:58 AM

Re: Variants on the Productlist
 
@2coolbaby: is that your entire file?


@Jonjolt1: the speed is likely due to the queries involved. X-Cart has to run at *least* 1 additional query per product for the product options, but likely more than 1 additional. So I'd bet you're essentially doubling/tripling your queries on your category page.


All times are GMT -8. The time now is 06:07 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.