Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 How to add specific product into content region
Author « Topic »  

Andrey9
New Member

Israel
97 Posts

Posted - 04/30/2018 :  07:31:36  
Hi all!
Please help me! I need to add some products on content region page.
When I tried to do recomennded products like:
<?php
$csrecommendedtitle="Recommended items";
$crosssellaction='recommended';
$csnobuyorcheckout=TRUE;
$csnoshowdiscounts=TRUE;
$csnoproductoptions=TRUE;
$crosssellcolumns=3;
$crosssellrows=2;
?>
<?php include "vsadmin/inc/inccrosssell.php" ?>

I got automatic ignore:
<!--?php
$csrecommendedtitle="Recommended items";
$crosssellaction='recommended';
$csnobuyorcheckout=TRUE;
$csnoshowdiscounts=TRUE;
$csnoproductoptions=TRUE;
$crosssellcolumns=3;
$crosssellrows=2;
?>
<?php include "vsadmin/inc/inccrosssell.php" ?-->



Kislev Andrey

Andy
ECT Moderator

95440 Posts

Posted - 04/30/2018 :  07:35:22  
Hi

I'm afraid it's not possible to add dynamic code to the content regions, it would have to go directly on the page itself.

Andy

Please feel free to review / rate our software

Andrey9
New Member

Israel
97 Posts

Posted - 04/30/2018 :  07:44:29  
Can I create content region page contain product image, price and buy button?

Kislev Andrey

Andy
ECT Moderator

95440 Posts

Posted - 04/30/2018 :  07:57:20  
Yes, that should work fine as there's no PHP to parse.

Andy

Please feel free to review / rate our software

Andrey9
New Member

Israel
97 Posts

Posted - 05/01/2018 :  02:58:44  
Can send the link of topic that describe about this procedure?

Kislev Andrey

Andy
ECT Moderator

95440 Posts

Posted - 05/01/2018 :  03:10:24  
The code for the buy button would be like this

<form method="post" action="cart.php">
<input type="hidden" name="id" value="XXXXXX">
<input type="hidden" name="mode" value="add">
<input type="image" src="images/buy.gif" border="0">
</form>

...where XXXXX is the product id

The image code would be something like this

<img src="/prodimages/myproduct.jpg" alt ="My Product">

Andy

Please feel free to review / rate our software

Andrey9
New Member

Israel
97 Posts

Posted - 05/01/2018 :  11:54:25  
Working good, but what code need to add that price of products also will appear?

Kislev Andrey

Andy
ECT Moderator

95440 Posts

Posted - 05/01/2018 :  12:10:09  
You would need to add that manually, something like

<p>Price $29.99</p>

Andy

Please feel free to review / rate our software
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000