X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   ezUpsell - thumbnail size adjust? (https://forum.x-cart.com/showthread.php?t=67263)

carpeperdiem 07-02-2013 06:45 PM

ezUpsell - thumbnail size adjust?
 
As everyone here knows, I think ezUpsell is a brilliant mod, and only if x-cart fixes their add-to-cart popup for true variant and true upsell support will WebsiteCM's ezUpsell have any competition.

ezUp has worked just fine for me -- but I need to find a solution for the size (and qty) of the thumbnails -- the way ezUp works, it basically offers the customer a choice of upsell items by using this include:

{include file="customer/main/products.tpl" products=$product_links}

Now, MY products.tpl has an include for <your-skin>/customer/main/products_list.tpl

And my category page thumbs are set at 200px and using css, limiting to 3 products per line. But for the ezUp page, I want 4 products, at 175px (instead of 3 @ 200px).

SO I was thinking -- how about cloning products.tpl, and products_list.tpl - and copy to the ezUpsell directory. And then include like this:

{include file="modules/ezUpsell/products.tpl" products=$product_links}

and
{include file="modules/ezUpsell/products_list.tpl"}

And then I thought, why not edit products_list.tpl and force the thumbnail to 175px -- but I tried editing products_list.tpl ---

Code:

{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}

I tried hard coding
image_x="150px" image_y="150px"
but that didn't work.

Am I missing something obvious here?

Any other ideas how best to accomplish this?

Thanks,
J

cflsystems 07-02-2013 08:58 PM

Re: ezUpsell - thumbnail size adjust?
 
Take out the "px" - image_x=150 and image_y=150

carpeperdiem 07-03-2013 04:23 AM

Re: ezUpsell - thumbnail size adjust?
 
Thanks, Steve.

I realized I had to clone the entire /* Products */ block of css, rename the #id and and edit as needed. Appears to be a waste of css for only a handful of edits- probably could have used IFs - but this is the brute force sure thing.
I used image_x=160 and image_y=160 (no quotes) + the css edits
Now, I'm gonna try to get QuickView to appear on the ezUpsell page... shouldn't be too hard?
Not gonna fight that battle today -- maybe tomorrow...

Thanks!
J

cflsystems 07-03-2013 08:21 AM

Re: ezUpsell - thumbnail size adjust?
 
Take a break, it's holiday ;)

carpeperdiem 07-03-2013 08:25 AM

Re: ezUpsell - thumbnail size adjust?
 
Quote:

Originally Posted by cflsystems
Take a break, it's holiday ;)


I have my steaks ready for the grill and I will take tomorrow off. I am SOOOOO close to bringing my new template live -- just need to solve a few more minors, then I can always tweak after a soft-launch. Hopefully by tonight.

:-)


All times are GMT -8. The time now is 10:29 PM.

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