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

NEW xcart template - xtreme Gear

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #31  
Old 05-19-2013, 02:00 AM
 
DavyMac DavyMac is offline
 

eXpert
  
Join Date: Apr 2007
Location: Poole, UK
Posts: 333
 

Default Re: NEW xcart template - xtreme Gear

Quote:
Originally Posted by Dongan
Open a ticket directly with them http://www.thexcartstore.com/help.php

They will respond.

Thanks. If I thought that this was a bug then I would certainly raise a ticket, but what I've described is an implementation detail and I can't expect them to change their code for free.

I think the following code changes will get me the manufactuers image from the file system instead of the database. Please note that this is off the top of my head and it has not been tested. I need to set up my offline store to test this.

Somewhere within file product.php insert:
PHP Code:
/* To extract the URL of the manufacturers logo image */                    
$brand_logo_path func_query("SELECT image_path FROM $sql_tbl[images_M] INNER JOIN manufacturers ON $sql_tbl[manufacturers].manufacturerid='$product_info[manufacturerid]' AND $sql_tbl[images_M].id='$product_info[manufacturerid]'");
/* Assign the location of the image for use within the template */
$smarty->assign("logo_path"$brand_logo_path); 


Then, in file /skin/xtreme_gear/customer/main/product_details2.tpl

FIND:
Code:
<img src="image.php?type=M&amp;id={$product.manufacturerid}" alt="{$product.manufacturer}" />

REPLACE WITH:
Code:
<img src="$logo_path" alt="{$product.manufacturer}" />

By making this code change the product page will load quicker, which is why I will do this...once I can try it on an offline copy of our store.


EDIT: To see the correct code see post #40
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote
  #32  
Old 05-19-2013, 04:04 PM
 
mirage00 mirage00 is offline
 

Newbie
  
Join Date: Mar 2012
Posts: 9
 

Default Re: NEW xcart template - xtreme Gear

I purchased this skin and like it. A few issues though. I have products with options and the ajax cart in the header does not show the options for the product. So if a customer purchases a shirt, blue size small. it only says 'Shirt' and price. If they purchase 5 of the same shirt in different colors, there is no way to see the options.
__________________
4.4.3 Gold
Reply With Quote
  #33  
Old 05-20-2013, 12:26 AM
 
Will Hayes Will Hayes is offline
 

eXpert
  
Join Date: Apr 2007
Location: Waterford, Ireland
Posts: 206
 

Default Re: NEW xcart template - xtreme Gear

Hi guys,

DavyMac - as you pointed out, the manufacturer logo is an extra addition we included in our template. However we simply use the standard x-cart mechanism to retrieve the image using image.php

image.php will load the image from the file system (or database) it depends where your settings save the images to, based on the manufacturer id - if you prefer, we can send you a small update to load this image directly from the file system.
Could you send a support ticket through, so we can action this for you.

mirage00 - could you also submit a ticket to our support@thexcartstore.com account, please send through some screenshots so we can replicate your issue. We will get back to you on this today.

regards
Will
__________________
The xCart Store.com - Professional x-cart modules and x-cart templates
xMenus, Predictive Search, xBanners2, Busy Kitchen, xtreme Gear, Modern Living, xMobile - Smartphone template & Responsive x-cart template

x-cart 3.x.x
x-cart 4.x.x
Reply With Quote
  #34  
Old 05-20-2013, 12:51 AM
 
DavyMac DavyMac is offline
 

eXpert
  
Join Date: Apr 2007
Location: Poole, UK
Posts: 333
 

Default Re: NEW xcart template - xtreme Gear

Quote:
Originally Posted by mirage00
If they purchase 5 of the same shirt in different colors, there is no way to see the options.

This causes problems for our customers too, especially those that are buying a lot of duplicate products with different variants - during the buying process the customer loses track of what they've ordered. I've had a few complain about it.

Quote:
DavyMac - as you pointed out, the manufacturer logo is an extra addition we included in our template. However we simply use the standard x-cart mechanism to retrieve the image using image.php

image.php will load the image from the file system (or database) it depends where your settings save the images to, based on the manufacturer id - if you prefer, we can send you a small update to load this image directly from the file system.
Could you send a support ticket through, so we can action this for you.

Thanks Will. Within admin I have all image location options set to file system so I'd be very grateful for the update. I'll raise a support ticket for that.
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote
  #35  
Old 06-26-2013, 06:04 AM
 
DavyMac DavyMac is offline
 

eXpert
  
Join Date: Apr 2007
Location: Poole, UK
Posts: 333
 

Default Re: NEW xcart template - xtreme Gear

Quote:
Originally Posted by Will Hayes
image.php will load the image from the file system (or database) it depends where your settings save the images to, based on the manufacturer id - if you prefer, we can send you a small update to load this image directly from the file system.
Could you send a support ticket through, so we can action this for you.
Ticket #UYZ-325-75680 has been raised
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote
  #36  
Old 06-26-2013, 06:56 AM
 
carpeperdiem carpeperdiem is offline
 

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

Default Re: NEW xcart template - xtreme Gear

Quote:
Originally Posted by mirage00
I purchased this skin and like it. A few issues though. I have products with options and the ajax cart in the header does not show the options for the product. So if a customer purchases a shirt, blue size small. it only says 'Shirt' and price. If they purchase 5 of the same shirt in different colors, there is no way to see the options.

That is stock x-cart behavior, even in 4.6.0
There was a time (about the time 4.1.x dropped in 2006) when variants or options were first included in x-cart, but a certain group of x-cart engineers and support were extremely hostile to variants -- and they still are!

Will, I'll be happy to share screenshots of this with you as well. Unfortunately, it's not in the xcart core, so your template is just taking the xcart data (which is incomplete)and making it pretty.

I am a recent new owner of xTreme and my build-out is almost done -- and I have discovered more than a few "issues" along the way, but for the most part, most are x-cart design (defects) and TXS has graciously helped me work through them.

BUT -- there are more than a few instances where 4.5.4 or 4.5.5 code does not integrate well with xTreme - since some of xTreme was built on 4.5.2 code -- sometimes (usually) it's ok - but there are times when you have to go grab 4.5.4 or 4.5.5 code.

I will be posting my love letter about xTreme soon -- but still have a few more obstacles to overcome.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #37  
Old 06-29-2013, 01:46 PM
 
albertchui albertchui is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 163
 

Default Re: NEW xcart template - xtreme Gear

hi, wil, it seem there is small issue with 4.6 that the category images does not show after i apply them in admin, the see attached image, thanks

albert
Attached Images
File Type: jpg category images.jpg (77.4 KB, 20 views)
__________________
X-Cart Gold 4.6
Reply With Quote
  #38  
Old 07-01-2013, 03:21 AM
 
Will Hayes Will Hayes is offline
 

eXpert
  
Join Date: Apr 2007
Location: Waterford, Ireland
Posts: 206
 

Default Re: NEW xcart template - xtreme Gear

Hi Albert,

That looks strange - are you sure you have the correct folder permissions set for your category images? If you would like us to investigate further, can you submit a support ticket here:
support.thexcartstore.com
include your ftp details also, so we can check your setup as this is certainly not a template problem.

regards
W.
__________________
The xCart Store.com - Professional x-cart modules and x-cart templates
xMenus, Predictive Search, xBanners2, Busy Kitchen, xtreme Gear, Modern Living, xMobile - Smartphone template & Responsive x-cart template

x-cart 3.x.x
x-cart 4.x.x
Reply With Quote
  #39  
Old 07-01-2013, 10:00 AM
 
albertchui albertchui is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 163
 

Default Re: NEW xcart template - xtreme Gear

hi, wil, thanks for your advise, i forgot i am using amazon cloud and forgot to upload new images, thanks

albert
__________________
X-Cart Gold 4.6
Reply With Quote
  #40  
Old 07-02-2013, 05:06 AM
 
DavyMac DavyMac is offline
 

eXpert
  
Join Date: Apr 2007
Location: Poole, UK
Posts: 333
 

Default Re: NEW xcart template - xtreme Gear

If you want the manufacturer's logo on the product page to be loaded from the file system instead of from the database then this code does the trick.

FILE: product.php

Find:
PHP Code:
$smarty->assign('meta_page_id',   $product_info['productid']); 

Then immediately after insert:
PHP Code:
/* To extract the URL of the manufacturers logo image */
$brand_logo_path func_query_first_cell("SELECT image_path FROM $sql_tbl[images_M] INNER JOIN $sql_tbl[manufacturers] ON $sql_tbl[manufacturers].manufacturerid='$product_info[manufacturerid]' AND $sql_tbl[images_M].id='$product_info[manufacturerid]'");
/* Assign the location of the image for use within the template */
$smarty->assign("logo_path"$brand_logo_path); 

FILE: skin/xtreme_gear/customer/main/product_details2.tpl

Replace:
PHP Code:
<img src="image.php?type=M&amp;id={$product.manufacturerid}alt="{$product.manufacturer}/> 

With:
PHP Code:
<img src="{$logo_path}alt="{$product.manufacturer}/> 

I had to do this so that I could load the manufacturers logo from our CDN.
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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 01:22 PM.

   

 
X-Cart forums © 2001-2020