Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / images inline with text next to main product image

images inline with text next to main product image

Locked

Views: 1,489

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
9 Apr 2009, 9:35 PM
#1
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

images inline with text next to main product image

I'd like to add a standardized image or set of images inline / inside the text description.

So for example it might read

*this product features blah .... blah ... blah... it is also compatible with (image) (image 2) (image3) shipping is flat for this item at $20.00... blah blah
*
The image examples would only encompass a few images but each SKU would have a different combination of same.

Running the latest version of zencart.

I figure it is likely just a snippet of code. Any help would be great since if it is inline with the text it can easily be done globally using ezpop

Cheers

10 Apr 2009, 2:49 AM
#2
jwitt98 avatar

jwitt98

New Zenner

Join Date:
Feb 2009
Posts:
95
Plugin Contributions:
0

Re: images inline with text next to main product image

The nice thing is that images are already inline elements by default.

You will want to switch to plain text view:
you might add something like:

<h3>this product features blah .... blah ... blah... it is also compatible with <img src="/path/to/image1.jpg" alt="Any Text Here"/>  <img src="/path/to/image2.jpg" alt="Any Text Here"/> <img src="/path/to/image3.jpg" alt="Any Text Here"/> shipping is flat for this item at $20.00... blah blah</h3>

to your product description.

10 Apr 2009, 2:54 PM
#3
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

Re: images inline with text next to main product image

I will try this over the weekend!

Thanks very much for your help!:clap:

12 Apr 2009, 2:45 AM
#4
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

Re: images inline with text next to main product image

PERFECT Thanks very much a useful new thing to add to the entire website.

12 Apr 2009, 4:08 AM
#5
jwitt98 avatar

jwitt98

New Zenner

Join Date:
Feb 2009
Posts:
95
Plugin Contributions:
0

Re: images inline with text next to main product image

Glad it worked out:smile:

20 Apr 2009, 4:05 PM
#6
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

Re: images inline with text next to main product image

Well... no so fast.

This doesn't show in the category vertical list display. Meaning when the entire vertical list of products in a given category is displayed v the individual listing.

In the vertical listing it does not show and yet by clicking on the individual item listing it shows the images perfectly.

Any suggestions on this? I am at a loss as the number of characters is plenty large enough so it is not that setting.

20 Apr 2009, 10:12 PM
#7
jwitt98 avatar

jwitt98

New Zenner

Join Date:
Feb 2009
Posts:
95
Plugin Contributions:
0

Re: images inline with text next to main product image

If you want these images to also display in your product category lisitings pages, that's not such an easy task.
If you're knowledgeable enough in PHP, you could copy the zen_clean_html function in functions_general.php rename the new copy to say zen_clean_html_for_product_listings, then edit the new copy it so that it does not clean the <img> tags.
Then you would need to edit product_listing.php to use the new zen_clean_html_for_product_listings function.

27 Apr 2009, 2:50 PM
#8
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

Re: images inline with text next to main product image

That is an excellent lead. I will try that in my test environment to see if I can crash my zencart:smile:

Hopefully I can get it to work thanks very much I understand the concept.

27 Apr 2009, 10:15 PM
#9
jwitt98 avatar

jwitt98

New Zenner

Join Date:
Feb 2009
Posts:
95
Plugin Contributions:
0

Re: images inline with text next to main product image

Good Luck,
Let us know how it works out.