Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

ezUpsell - thumbnail size adjust?

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 07-02-2013, 06:45 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #2  
Old 07-02-2013, 08:58 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: ezUpsell - thumbnail size adjust?

Take out the "px" - image_x=150 and image_y=150
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
carpeperdiem (07-03-2013)
  #3  
Old 07-03-2013, 04:23 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 07-03-2013, 08:21 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: ezUpsell - thumbnail size adjust?

Take a break, it's holiday
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 07-03-2013, 08:25 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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.

__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:42 AM.

   

 
X-Cart forums © 2001-2020