The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 03-22-2011, 10:45 AM
Doc's Avatar
Doc is offline
Member
 
Join Date: Dec 2010
Location: Italy
Posts: 44
Talking

embed a single product into pages - no html


Hi all,
i use this code to show only one product:

<div><script>
if (!document.location.hash) {
var ecwid_amp = String.fromCharCode(38);
document.location.hash = 'ecwid:category=0' + ecwid_amp + 'mode=product' + ecwid_amp + 'product=1601364';
}
</script></div>

but it open a pop-up!
i need to have it into page.

thanks
doc
  #2  
Old 03-22-2011, 11:51 AM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
 
Join Date: Sep 2009
Posts: 10,847
Default

Quote:
Originally Posted by Doc View Post
Hi all,
i use this code to show only one product:

HTML Code:
<div><script>
if (!document.location.hash) {
var ecwid_amp = String.fromCharCode(38);
document.location.hash = 'ecwid:category=0' + ecwid_amp + 'mode=product' + ecwid_amp + 'product=1601364';
} 
</script></div>
but it open a pop-up!
i need to have it into page.

thanks
doc
You should also add the Product Browser widget below this code. I.e.

HTML Code:
<div><script>
if (!document.location.hash) {
var ecwid_amp = String.fromCharCode(38);
document.location.hash = 'ecwid:category=0' + ecwid_amp + 'mode=product' + ecwid_amp + 'product=1601364';
} 
</script></div>


<div>
<script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","style="); </script>
</div>
__________________
Eugene K.
Ecwid Team

@ecwid | Facebook | Ecwid Knowledge Base
  #3  
Old 03-22-2011, 12:04 PM
Doc's Avatar
Doc Doc is offline
Member
 
Join Date: Dec 2010
Location: Italy
Posts: 44
Default

Great! thanks
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
product, single

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:28 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.