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

Page Preview

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-23-2003, 03:38 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default Page Preview

has anyone come up with a mod for a page preview.

What im thinking is when you are updating new stock onbviously you don't want it viewable by customers until you have updated everything.

The only thing I can see that you can do at the moment is enable the product do a quick view as normal then quickly disable it again.
Reply With Quote
  #2  
Old 06-23-2003, 11:31 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

If you have the product as disabled - but then go to the product directly as:

www.domain.com/xcart dir/customer/product.php?productid=70

or whatever the product id is.

This could be added to the confirmation page after a product has been added to open it up in a new window.

template is main/product_add_message.tpl

change:

Code:
{* $Id: product_add_message.tpl,v 1.9 2002/05/20 06:55:23 lucky Exp $ *} {include file="location.tpl" last_location=$lng.lbl_add_product} {capture name=dialog} {$lng.lbl_product} #{$product.productid} {$lng.lbl_product_added} {$lng.lbl_modify_product} {include file="buttons/go.tpl"} {$lng.lbl_add_more_products} {include file="buttons/go.tpl"} {/capture} {include file="dialog.tpl" title=$lng.lbl_confirmation content=$smarty.capture.dialog extra="width=100%"}

to

Code:
{* $Id: product_add_message.tpl,v 1.9 2002/05/20 06:55:23 lucky Exp $ *} {include file="location.tpl" last_location=$lng.lbl_add_product} {capture name=dialog} {$lng.lbl_product} #{$product.productid} {$lng.lbl_product_added} Preview Product {include file="buttons/go.tpl"} {$lng.lbl_modify_product} {include file="buttons/go.tpl"} {$lng.lbl_add_more_products} {include file="buttons/go.tpl"} {/capture} {include file="dialog.tpl" title=$lng.lbl_confirmation content=$smarty.capture.dialog extra="width=100%"}
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 06-23-2003, 11:32 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

just a little guilt complex came over me there cotc
__________________
ex x-cart guru
Reply With Quote
  #4  
Old 06-23-2003, 11:37 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

LOL no worries m8
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 05:51 PM.

   

 
X-Cart forums © 2001-2020