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
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 $admincustomlabel question
Author « Topic »  

Mikelli
Ecommerce Template Guru

USA
1613 Posts

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

Posted - 03/13/2022 :  23:04:48  
I just added these to the includes.php for internal use in product admin, but they are printing on the products.php and prod detail.php pages, how can I prevent that?

$admincustomlabel1="Extra Data ";
$admincustomlabel3="Supplier Part # ";

Thanks,

Michael

Vince
Administrator

42874 Posts

Posted - 03/14/2022 :  03:07:56  
How about in the prod detail.php page itself just before the incproddetail.php include line add this…

<?php
$admincustomlabel1="";
$admincustomlabel3="";
?>

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Mikelli
Ecommerce Template Guru

USA
1613 Posts

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

Posted - 03/14/2022 :  10:33:11  
I put them back into the includes.php and now product admin won't display the two fields.
I must have broken something late last night.

Michael

Mikelli
Ecommerce Template Guru

USA
1613 Posts

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

Posted - 03/14/2022 :  12:11:43  
I now have on includes.php:

$admincustomlabel1="Packaging Type ";
$admincustomlabel2="PID # ";
$admincustomlabel3="Supplier Part # ";

On prod detail page I have

Only $admincustomlabel2="PID # "; displays in Prod Admin, and it doesn't display on prod detail page (which I want)

Michael

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 03/14/2022 :  19:29:38  
Hi Mikelli,
I think the use of the "custom1, custom2, custom3" fields is all explained on the PHP Parameters Help page here: CSS layouts for the category, product and detail pages >>

Regards,

Gary

Edited by - ITZAP on 03/14/2022 19:30:19

Mikelli
Ecommerce Template Guru

USA
1613 Posts

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

Posted - 03/14/2022 :  20:17:39  
Thanks Gary, I read that a few times.

Right now I have all 3 fields displaying in prod admin. I don't want custom1 & 3 to print on the details page though. I tried Vince's suggestion and all 3 still print on the page. If I remove them from this string: 'custom2, navigation, checkoutbutton, productimage, productid, sku, productname, description, listprice, price, options, quantity, addtocart, previousnext, emailfriend, custom1, custom3 ';

They (custom1 & 3) won't display on the details page or in prod admin any longer, which I want for internal use. I don't see that addressed in that PHP parameters section. Sorry if I wasn't clear earlier.

Michael

Vince
Administrator

42874 Posts

Posted - 03/15/2022 :  04:09:53  
Hi Michael
Do you hae the parameters, $productpagelayout and $detailpagelayout in your includes.php file? If so, what are they set to?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Mikelli
Ecommerce Template Guru

USA
1613 Posts

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

Posted - 03/15/2022 :  07:18:14  
$detailpagelayout='custom2, navigation, checkoutbutton, productimage, productid, sku, productname, description, listprice, price, options, quantity, addtocart, previousnext, emailfriend, custom1, custom3 ';

The last 2 are so that I can use the fields in product admin. When removed they disappear in admin.

No $productpagelayout

Michael

Vince
Administrator

42874 Posts

Posted - 03/15/2022 :  07:35:38  
Hi Michael
If you set these parameters but remove the "custom" parameters from the detail and product page layouts then you should be able to set the values in admin but not have them appear on the page.

$admincustomlabel1="Extra Data ";
$admincustomlabel3="Supplier Part # ";

Can you try that and let me know if it doesn't work.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Mikelli
Ecommerce Template Guru

USA
1613 Posts

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

Posted - 03/15/2022 :  07:44:02  
That results them same as earlier. The fields disappear from product admin (I want them to stay) and they no longer print on the page. Custom #2 prints on details page and stays in product admin , Here's what I have:

$detailpagelayout='custom2, navigation, checkoutbutton, productimage, productid, sku, productname, description, listprice, price, options, quantity, addtocart, previousnext, emailfriend' ;

$admincustomlabel1="Packaging Type ";
$admincustomlabel2="PID # ";
$admincustomlabel3="Supplier Part # ";

On product detail page, I have:
<?php
$admincustomlabel1="";
$admincustomlabel3="";
?>
<?php include "vsadmin/inc/incproddetail.php" ?>

Michael

Vince
Administrator

42874 Posts

Posted - 03/16/2022 :  03:43:03  
Hi Michael
Thinking about it, are you on v7.4.7 yet as there were lots of changes made to make the use of the custom parameters more flexible in this version. There are more details here...
https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=114584

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Mikelli
Ecommerce Template Guru

USA
1613 Posts

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

Posted - 03/16/2022 :  07:54:17  
Hi Vince, I'm on Ecommerce Plus PHP v7.4.5

I'll update and get back to you.


Michael

Mikelli
Ecommerce Template Guru

USA
1613 Posts

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

Posted - 03/16/2022 :  10:12:32  
Hi Vince, that corrected it.

Thank You Sir !!

Michael
  « 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