X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product Picture do not show up. (https://forum.x-cart.com/showthread.php?t=11382)

jzammetti 01-10-2005 01:49 PM

Product Picture do not show up.
 
Hello:
I've read for but have not hit my target question so here goes. When I use the admin to create and populate a new category all goes well. I select a picture and that uploads... So I thought. When I view the category as a customer would the picture is no where in sight. Am I over looking the obvious?

balinor 01-10-2005 02:33 PM

Tons of possibilites here. Are you storing the images in your file system or database? Are you pulling the images from your server, hard drive or remote server?

jzammetti 01-10-2005 02:55 PM

Thank you for a fast reply
 
Ok Under "Images Location" in Admin Area Category Icons are stored under "File Systems" and the path is "/usr/local/4admin/apache/vhosts/pugwear.com/httpdocs/cart/images"
"Allow to store images only in the directory specified here*: " is CHECKED
"File size limit (bytes)**;" = 0

Okay category #32 has a graphic assigned to it. Below is a screen shot of my FTP showing the image.

-rw-rw-rw- 1 apache fadmin 32834 Jan 10 17:37 c_32.jpg

I do have the permissions set to RD/WT

Is there any coding dump to be helpful?

All help is much welcome
-Joe

balinor 01-10-2005 03:40 PM

Oh you are talking about CATEGORY icons...sorry, thought you were talking about product icons. You want the category icon to show up above the products, next to the description?

jzammetti 01-10-2005 04:20 PM

Yes Category Icon/Pictures
 
If I am correct the thinking was to upload a picture associated with your category in my world it world be a graphic of the shirt example tee, denim so on.

When I add a PRODUCT the picture is fine and shows the customer it's the PRODUCT graphic that is giving me the S**ts.
-Joe

jzammetti 01-10-2005 04:22 PM

CORRECTION
 
It's not the PRODUCT picture it is the CATEGORY picture...Sorry..

balinor 01-10-2005 04:36 PM

Ok, you will want to edit your subcategories.tpl. Look for this line of code:

Code:

{if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace:"/[\n]/":"
"}

{/if}


replace it with this:

Code:

{if ($navigation_page eq "")||($navigation_page eq "1")}

<table width="100%"><tr><td>[img]{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}[/img]</td>
<td>{$current_category.description|regex_replace:"/[\n]/":"
"}</td></tr>
</table>{/if}


Let me know how it works.

jzammetti 01-10-2005 04:52 PM

AWESOME
 
You my friend are awesome!

What is your contractual rate?

Millie Grazie!!!

Thank You!

balinor 01-10-2005 04:53 PM

Well that depends, how much do you want to pay? :lol:

jzammetti 01-10-2005 04:58 PM

Contact me off board
 
Contact me off board

goto www.pugwear.com Click on live help we'll chat there.


All times are GMT -8. The time now is 07:53 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.