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

main page image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-15-2011, 02:43 PM
 
spiderling spiderling is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 45
 

Default main page image

I am trying to give the client the ability to change an image on the main page of the store via the admin. I was thinking of using Content => Files in the admin.

The problem though is that the uploaded image is given permissions of 600 and the image does not display on the main page.

How / Where can I allow the client to upload the main image on a regular basis via the admin? Will the "Files" management allow for this somehow?
__________________
2 - X-Cart Gold 4.4.2
1 - X-Cart Gold 4.4.4
Reply With Quote
  #2  
Old 06-18-2011, 07:47 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: main page image

Just a thought but instead of using the "files" folder what if you used the "templates" folder and created a new directory (something like "banner" or "main_image")? Then add a link to a image in welcome.txt to yourdomain.com/skin/banner/main-image.jpg. The admin can then upload a "new" main-image.jpg in the edit templates section... just be sure to tell them to not edit or replace anything outside of the "banner" folder.

I haven't tried this to see if it would work, but it should.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote

The following user thanks JWait for this useful post:
spiderling (06-20-2011)
  #3  
Old 07-07-2011, 12:59 PM
 
ScrapOrchard ScrapOrchard is offline
 

eXpert
  
Join Date: Mar 2008
Posts: 243
 

Default Re: main page image

Maybe make a label in the Languages, then call that label where ever it is you want the image to be.

Then they can just update the label content, as needed. This way they won't have to go mucking around in the code!
__________________
www.scraporchard.com
X-Cart Pro Version 4.5.5

Altered Cart: One Page Checkout, OnSale, Buy Together, Download Expander, Smart Search, Shop by Filters
Gahela: Gahela Support System
The xCart Store: xBanners, xAccess, xMenus
Reply With Quote
  #4  
Old 07-07-2011, 01:07 PM
 
ScrapOrchard ScrapOrchard is offline
 

eXpert
  
Join Date: Mar 2008
Posts: 243
 

Default Re: main page image

wrong thread?!
__________________
www.scraporchard.com
X-Cart Pro Version 4.5.5

Altered Cart: One Page Checkout, OnSale, Buy Together, Download Expander, Smart Search, Shop by Filters
Gahela: Gahela Support System
The xCart Store: xBanners, xAccess, xMenus
Reply With Quote
  #5  
Old 07-07-2011, 01:24 PM
 
ScrapOrchard ScrapOrchard is offline
 

eXpert
  
Join Date: Mar 2008
Posts: 243
 

Default Re: main page image

wrong thread?!
__________________
www.scraporchard.com
X-Cart Pro Version 4.5.5

Altered Cart: One Page Checkout, OnSale, Buy Together, Download Expander, Smart Search, Shop by Filters
Gahela: Gahela Support System
The xCart Store: xBanners, xAccess, xMenus
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:44 PM.

   

 
X-Cart forums © 2001-2020