Search:
 
PHP Site Solutions  ::  Board index  ::  PHP Site Solutions  ::  Open-source Software  ::  Dynamic Images
Forum Navigation Forum Navigation



All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 4 posts ] 
  Print view

How to Reference Variant Images
Author Message
PostPosted: Tue Aug 26, 2008 9:41 am 
Offline
User avatar

Joined: Mon Aug 25, 2008 11:06 am
Posts: 3
Location: Bartlesville, Oklahoma
I'm trying to use the Dynamic Images module to reference and display variant images on the product page. In this case, I just want thumbnail images in columns so the Variant Chart module is not right for me. I plan to modify the variant check_options() function to highlite the correct variant image in the group, and also to implement it with Lytebox so that clicking any variant image pulls up a lyteshow.

My problem is, I can't figure out how to loop through the variants and reference each image. If anybody can help, that would be great.

Thanks,
Fritz

_________________
Happy coding!
Fritz

Copper Cup Images Print, Web & Multimedia Design
http://www.coppercupimages.com


Top
 Profile  
 

Re: How to Reference Variant Images
PostPosted: Tue Aug 26, 2008 9:32 pm 
Online
Site Admin
User avatar

Joined: Thu Apr 24, 2008 5:29 am
Posts: 50
Hi Fritz, did you ever figure this out? If need be, I can post some code from my Variants Chart logic for looping the variants.

Let me know

_________________
Original Open Source projects:
CRaniuM CRM - Open Source CRM based on Yii Framework
OpenVIN - Open Source VIN decoding solution
Tiny Templater - Integrate logic into your content
XCSEO Basic - X-Cart (4.0,4.1) free SEO module

Maintained Open Source projects:
Sphider Plus - Spider/search engine
Template Lite - Alternative to Smarty


Top
 Profile  
 

Re: How to Reference Variant Images
PostPosted: Wed Aug 27, 2008 9:35 am 
Offline
User avatar

Joined: Mon Aug 25, 2008 11:06 am
Posts: 3
Location: Bartlesville, Oklahoma
Hi Jon,

I did get it figured out. That's about as deep into X-Cart code as I've dug before. It took me quite a while to figure out what name/value pairs are in the $variants and variant options arrays. I don't do a lot of Smarty coding, but I'm getting better at it.

Anyway, for anyone interested, I've completed a simple mod that displays variant image thumbnails on the product page.

If you need to list (or chart) variants with descriptions, option choices, thumbnails, options to purchase, and more, I recommend trying the Variant Chart Module available from PHP Site Solutions here: http://www.phpsitesolutions.com/x-cart-variant-addons/variant-chart-module.html

If you just want to display variant image thumbnails (say to show the available colors of a product), then you can check out my Dynamic Variant Images Display mod: http://forum.x-cart.com/showthread.php?p=227764#post227764

_________________
Happy coding!
Fritz

Copper Cup Images Print, Web & Multimedia Design
http://www.coppercupimages.com


Top
 Profile  
 

Re: How to Reference Variant Images
PostPosted: Sun Dec 21, 2008 1:00 am 
Offline

Joined: Sun Dec 21, 2008 12:45 am
Posts: 2
Hi Coppercup,

Could you please help me. I am trying to install the dynamic image to my xcart 4.1.5 but when I applied the patch I had this error please see below:

Applying patch


Step 2 of 2: Applying the patch

Files patch status:
File Status
skin1/customer/main/product.tpl could not patch
skin1/product_thumbnail.tpl could not patch


Status legend:
OK - file ready to patch,
checksum error - patch contents is corrupted,
non-writable - please give those files a write permissions,
not a file - the target is not a file,
not exists - file is missing,
could not patch - patch cannot be applied to this file automatically because it was significantly modified, the patch for this file should be applied manually,
already patched - file was already patched.

Files excluded from patch procedure:
File Status
image.php already patched


Status legend:
OK - file ready to patch,
checksum error - patch contents is corrupted,
non-writable - please give those files a write permissions,
not a file - the target is not a file,
not exists - file is missing,
could not patch - patch cannot be applied to this file automatically because it was significantly modified, the patch for this file should be applied manually,
already patched - file was already patched.

PATCH RESULTS

PATCH FAILED AT FILE: skin1/customer/main/product.tpl, see PATCH LOG for details.
PATCH FAILED AT FILE: skin1/product_thumbnail.tpl, see PATCH LOG for details.

PATCH LOG

Patching file /home/fletcher/public_html/propertyrescueservices.co.uk/testtesttest/skin1/customer/main/product.tpl ...
Hunk #1 failed at 13.
1 out of 1 hunks ignored--saving rejects to /home/fletcher/public_html/propertyrescueservices.co.uk/testtesttest/var/upgrade/skin1^customer^main^product.tpl.rej
done
Patching file /home/fletcher/public_html/propertyrescueservices.co.uk/testtesttest/skin1/product_thumbnail.tpl ...
Hunk #1 failed at 1.
1 out of 1 hunks ignored--saving rejects to /home/fletcher/public_html/propertyrescueservices.co.uk/testtesttest/var/upgrade/skin1^product_thumbnail.tpl.rej
done


Warning!
The following files could not be patched with automated upgrade system. This may be because these files were changed from their original state. Those files needs to be patched manually or restored from backup.

File Status
skin1/customer/main/product.tpl could not patch
skin1/product_thumbnail.tpl could not patch


Status legend:
OK - file ready to patch,
checksum error - patch contents is corrupted,
non-writable - please give those files a write permissions,
not a file - the target is not a file,
not exists - file is missing,
could not patch - patch cannot be applied to this file automatically because it was significantly modified, the patch for this file should be applied manually,
already patched - file was already patched.

Please correct the errors displayed above and try again.





Could please let me know what is it that I am doing wrong and how can I fix this issue.

Does the dynamic image works like this site www.monstertamplate.com if you point on any template thats how I want it to work.... Could you please help I have spent all day and I couldn't fix the issue... I can see the module in the module section but the patch want install at for:

PATCH FAILED AT FILE: skin1/customer/main/product.tpl, see PATCH LOG for details.
PATCH FAILED AT FILE: skin1/product_thumbnail.tpl, see PATCH LOG for details.

Dynamic image file attached

Many Thanks

Allen


Attachments:
File comment: Dynamic image file attached
dynamic_images_CURRENT.zip [13.83 KiB]
Downloaded 57 times
Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Authentication Authentication


Copyright © 2006-2008 PHP Site Solutions