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

modify admin area.. but where?!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-19-2007, 08:05 AM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Default modify admin area.. but where?!

Hey hey all,

I've made a few changes to my product display so that the "Product image" is flash instead of a .jpg. (working great!) Now I need to toss that mod into the admin area so I can see the products. I can't seem to find it. So I think I am in need of 2 things advice-wise:

1) While viewing "Product details" in the admin area (where you see the thumbnails and can change image etc..) I need to find out where the script is that calls in the "Product image".

2) I'm pretty sure there are more places where I would need to put this mod in as well. So far it is only in the product.tpl file (in the customer/main folder)
I want to be sure that I'm not missing something since I'm pretty new to this.

-hroth
__________________
x-cart- 4.1.10
www.boutiquefinn.ca
Reply With Quote
  #2  
Old 07-19-2007, 12:07 PM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Unhappy Re: modify admin area.. but where?!

Well I've been looking for this for hours now.
I really hope someone out there can give me a suggestion
or an answer.. please~~~~!!!! (begging)
__________________
x-cart- 4.1.10
www.boutiquefinn.ca
Reply With Quote
  #3  
Old 07-20-2007, 12:47 PM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Default Re: modify admin area.. but where?!

ok.. I'm looking at the clumps of hair in my hands..
Me no see product image in admin .. me go CRAZY!!
__________________
x-cart- 4.1.10
www.boutiquefinn.ca
Reply With Quote
  #4  
Old 07-20-2007, 01:42 PM
 
carpeperdiem carpeperdiem is offline
 

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

Default Re: modify admin area.. but where?!

Did you use webmaster mode and discover that you should start looking in

/main/product_details.tpl ?

Webmaster mode will tell you what lives where.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 07-23-2007, 07:54 AM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Default Re: modify admin area.. but where?!

It turns out I lost a frustrating day of development due to Dreamweaver not actually saving my changes to the server. *sigh* now that that is out of the way.. I have been working with the correct files. Now, in more detail I have a little quest that I am not sure how to arrive at.

Files I am working with: product_details.tpl and edit_image.tpl

edit_image.tpl is the key file for my needs.

I have .jpg thumbnails and .swf product images. For the customer, all is good. Now in the admin side I am still trying to have the .swf product image display at the same time as the .jpg thumbnail.

The script involved is:

Code:
{if $idtag eq ''}{assign var="idtag" value="edit_image"}{/if} <img id="{$idtag}" src="{$xcart_web_dir}/image.php?type={$type}&amp;id={$id}&amp;ts={$smarty.now}{if $already_loaded}&amp;tmp=Y{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{include file="main/image_property.tpl"}"/>
This bit of script displays both the thumbnail and the product image in the admin area when viewing product details.

I replaced this with this:

Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="335" height="427" id="movie" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.website.ca/shop/images/P/{$product.tmbn_url|filename}.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="http://www.website.ca/shop/images/P/{$product.tmbn_url|filename}.swf" quality="high" bgcolor="#000000" width="335" height="427" name="{$product.tmbn_url|filename}" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>

What happened is I lose the .jpg thumbnail and the .swf product image is what I see for both the thumbnail and the product image.

I wish to be able to see both, lots of products are waiting to go in and I would like to be able to see both of these images.

So I see it as the script is made to display both the thumbnail and the product image.

I was wondering if the {$type} returns ".jpg" (normally) .. if so I might be able to create a .swf / .jpg {if} statement based on type. ??

I would really appreciate any words.. I am a bit over my head (and as much as I love it and would find the answer.. time does not permit..) I am pretty much out of time!!

anyone!!?!?

-hroth
__________________
x-cart- 4.1.10
www.boutiquefinn.ca
Reply With Quote
  #6  
Old 04-08-2008, 12:58 PM
 
Macy Macy is offline
 

Member
  
Join Date: Apr 2008
Posts: 17
 

Default Re: modify admin area.. but where?!

Did you ever find a solution? I am trying to do something similar. Please explain how you got the product image to display your flash as well as your jpg. Would your solution interfere with x-Magnifier?
__________________
X-Cart 4.1.9
Reply With Quote
  #7  
Old 04-14-2008, 07:36 AM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Default Re: modify admin area.. but where?!

When I'm viewing the administration are, I cannot see the flash.
I can see the jpg thumbnail, but I get a broken x for the product image.

In the site, I modified the product image to be a flash embed, I left the variable for the file name for what xcart thinks is an image.

I can go into greater detail if you wish.

-hroth
__________________
x-cart- 4.1.10
www.boutiquefinn.ca
Reply With Quote
  #8  
Old 04-14-2008, 01:55 PM
 
Macy Macy is offline
 

Member
  
Join Date: Apr 2008
Posts: 17
 

Default Re: modify admin area.. but where?!

Thanks for your reply. Do go into detail. I'm only barely familar with html and not at all with php or smarty. So, please explain it like I'm a 3 year old. Thanx.
__________________
X-Cart 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:54 PM.

   

 
X-Cart forums © 2001-2020