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
Forum Search
Google Site Search
Author « Topic »  

JH10
Advanced Member

United Kingdom
304 Posts

Pre-sales questions only
(More Details...)

Posted - 11/06/2020 :  09:46:58  
Hello
I would like to display a product Reference Number (ProductID) on my main display page,

eg proddetail.php?prod=WES1339H

How can I do this please?

Thank you

John

Phil
ECT Moderator

United Kingdom
7681 Posts

Posted - 11/06/2020 :  11:37:39  
Hi John,
In your vsadmin/includes you can stipulate what to display on the product detail page by adding the following:

$detailpagelayout='navigation, checkoutbutton, productimage, productid, manufacturer, sku, productname, discounts, instock, description, listprice, price, quantity, currency, dateadded, options, addtocart, previousnext, emailfriend, reviews, socialmedia';

So all you need to do is add the above and remove what you don't want to display

https://www.ecommercetemplates.com/help/css-layouts.asp#proddetailorder



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 11/06/2020 11:39:40

JH10
Advanced Member

United Kingdom
304 Posts

Pre-sales questions only
(More Details...)

Posted - 11/06/2020 :  12:24:58  
Thanks for the quick answers Phil.

That's really an excellent and simple method to get the display as needed.

Regards

John

JH10
Advanced Member

United Kingdom
304 Posts

Pre-sales questions only
(More Details...)

Posted - 11/08/2020 :  09:14:09  
Hello again,
I wondered if there is a way of displaying the ProductID number on a category page.
IE the first page showing product listings.

Many thanks

John

Phil
ECT Moderator

United Kingdom
7681 Posts

Posted - 11/08/2020 :  10:31:41  
Hi John,
I'm assuming you mean the products page as the category page only displays categories
Just add this line to your vsadmin/includes.php for the products page and remove what you don't wish to display

$productpagelayout='productimage, addtocart,productid, sku, productname, manufacturer, discounts, reviewstars, instock, description, options, listprice, price, currency, quantity, dateadded';



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

JH10
Advanced Member

United Kingdom
304 Posts

Pre-sales questions only
(More Details...)

Posted - 11/08/2020 :  14:51:19  
Thanks for the answer Phil,
I do mean the category page, please see this at
http://net100test.co.uk/fb-design/markcain.php

Maybe just a temp item to assist identifying whilst placing some test data.

Regards

John

Phil
ECT Moderator

United Kingdom
7681 Posts

Posted - 11/08/2020 :  15:20:57  
Have you added the product layout line to your includes.php file?

It looks like you need something like this

$productpagelayout='productimage, productid, productname, price';

Or you could even add that line directly to the file markcain.php

<?php
session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
$explicitid=3;
$productpagelayout='productimage, productid, productname, price';
?>



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 11/09/2020 00:28:47

JH10
Advanced Member

United Kingdom
304 Posts

Pre-sales questions only
(More Details...)

Posted - 11/09/2020 :  03:10:30  
Hello Phil,

Great! I now have that line in both
detailpagelayout and productpagelayout, so it appears on all pages.

It will make the initial data entry easier.

Is there a way of changing or removing the words Product ID?

Many thanks

John

Phil
ECT Moderator

United Kingdom
7681 Posts

Posted - 11/09/2020 :  03:29:06  
quote:
Is there a way of changing or removing the words Product ID?


Add this line to your vsadmin/includes.php changing 'Your New Name' to whatever you like

$xxPrId='Your New Name';
To remove it just add
$xxPrId=' ';



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 11/09/2020 03:30:43

JH10
Advanced Member

United Kingdom
304 Posts

Pre-sales questions only
(More Details...)

Posted - 11/09/2020 :  04:18:28  
Thanks Phil
Worked like a charm!

Regards
John
  « 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