Jump to content



Photo
- - - - -

Product Options with Images


  • Please log in to reply
10 replies to this topic

#1   CustomGaming

CustomGaming
  • Members
  • 11 posts
  • Real Name:Jack

Posted 28 July 2011 - 14:53

Hello,

I have recently bought a template and worked it around for 2 weeks with my very limited knowledge to get it to where it is now, but now i have found that it would be a million times better if i could have a button next to my various product options which would display an image of the attribute.

I have tried to find a contribution which would help in this situation with some luck but upon trying to install them i run into major issues through the install or when i try to adapt them to the oscommerce 2.3 software my webpage encounters problems!!

Any advise would help greatly

Regards,
Jack

#2   DunWeb

DunWeb

    The Censored One

  • Members
  • 13,084 posts
  • Real Name:Chris
  • Gender:Male
  • Location:Ontario, Canada

Posted 28 July 2011 - 15:04

Jack,


As you have seen, Options as images was never updated to work with v2.3.1 and further, you are using a template so even if it was v2.3.1 compatible you would have to edit some of the code to integrate it into your template.


The only thing I can suggest is try integrating it and post any/all errors you receive so we can help you correct them




Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

#3   CustomGaming

CustomGaming
  • Members
  • 11 posts
  • Real Name:Jack

Posted 28 July 2011 - 15:13

Thanks for the fast reply Chris,

Yeah i was thinking it would not be simple due to the template i used, i have been getting along pretty well seeing as though this is my first ever site, and really my first time learning even HTML let alone working a whole site.

I did encounter some syntax errors at first but i worked around them until i found the fix, the issue is more related to when i click on a product, the page that results is missing almost all elements and is all (for better of another word) 'mixed' up.

I will post a picture of the result after installing the options as pictures contribution, tomorrow as it is 1:30am and i am exhausted.

But any help would be appreciated.


Regards,
Jack

#4   CustomGaming

CustomGaming
  • Members
  • 11 posts
  • Real Name:Jack

Posted 28 July 2011 - 15:27

Jack,


As you have seen, Options as images was never updated to work with v2.3.1 and further, you are using a template so even if it was v2.3.1 compatible you would have to edit some of the code to integrate it into your template.


The only thing I can suggest is try integrating it and post any/all errors you receive so we can help you correct them




Chris


Hello,

I was thinking, would you possibly know anyway to just add a small image link which would obviously link to a larger image in a lightbox, next to the product option?

This is the site www.customgaming.com.au, and next to the option i was wondering if it would be possible to add a small image link?

Regards,
Jack

#5   DunWeb

DunWeb

    The Censored One

  • Members
  • 13,084 posts
  • Real Name:Chris
  • Gender:Male
  • Location:Ontario, Canada

Posted 28 July 2011 - 15:32

Jack,


That's exactly what the options as images contribution does. It isn't just as simple as adding image code to the page, the images have to be assigned to each attribute.





Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

#6   CustomGaming

CustomGaming
  • Members
  • 11 posts
  • Real Name:Jack

Posted 29 July 2011 - 01:47

Jack,


That's exactly what the options as images contribution does. It isn't just as simple as adding image code to the page, the images have to be assigned to each attribute.





Chris

Hey Chris,

I realised i was doing the installation wrong, and i have now done it the RIGHT way. But when i go to my products page by clicking on the thumbnails of them on the front page. The product options are now only errors provided below, and also in the admin section the structure is lost, it is not a huge problem as i can work around it but i am assuming it is due to the version differences. But any help on either of these issues would help....


Warning: require(includes/languages/english/options_images.php) [function.require]: failed to open stream: No such file or directory in /home/customga/public_html/options_images.php on line 13

Warning: require(includes/languages/english/options_images.php) [function.require]: failed to open stream: No such file or directory in /home/customga/public_html/options_images.php on line 13

Fatal error: require() [function.require]: Failed opening required 'includes/languages/english/options_images.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/customga/public_html/options_images.php on line 13

Kind Regards,
Jack

#7   hughesca

hughesca
  • Members
  • 134 posts
  • Real Name:Chris Hughes

Posted 29 July 2011 - 02:10

Hey Jack,

It's saying that it can't find the file /languages/english/options_images.php. Might want to double check your file locations. /wink.gif' class='bbc_emoticon' alt=';)' />

Peace,
Chris

#8   CustomGaming

CustomGaming
  • Members
  • 11 posts
  • Real Name:Jack

Posted 29 July 2011 - 02:26

Hey Jack,

It's saying that it can't find the file /languages/english/options_images.php. Might want to double check your file locations.

Peace,
Chris


Yeah found it, now that was a noob mistake,

Now i have it running properly, if i go to a product page and look at the attributes section down the bottom, just under the table for the attributes there is a '?>' and i don't know where it is coming from would anyone be able to shed some light?

http://customgaming....?products_id=34

Regards,
Jack

#9   hughesca

hughesca
  • Members
  • 134 posts
  • Real Name:Chris Hughes

Posted 29 July 2011 - 04:15

I couldn't tell ya without looking at the files, but it's likely you have an extra ?> in one of the files you modified. I'd check back over the files you made the modifications, she'll be lurking in there somewhere. By it's placement I'd say it's likely in your product_info.php. /wink.gif' class='bbc_emoticon' alt=';)' />

Peace,
Chris

#10   CustomGaming

CustomGaming
  • Members
  • 11 posts
  • Real Name:Jack

Posted 29 July 2011 - 05:46

I couldn't tell ya without looking at the files, but it's likely you have an extra ?> in one of the files you modified. I'd check back over the files you made the modifications, she'll be lurking in there somewhere. By it's placement I'd say it's likely in your product_info.php.

Peace,
Chris


Beautiful!! Was in the product_info.php. Got it all working and thank you so much for all your help

#11   Harm

Harm
  • Members
  • 2 posts
  • Real Name:Harm Jansen

Posted 11 December 2011 - 20:14

Hi Jack,

I am struggeling with the same issue. Somehow i can't get the code correctly in product_info.php.
Can you tell me what your solution was/is.

Thanks in advance.

Harm