Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Edit issue on Product Page

Edit issue on Product Page

Views: 6,503

Results 21 to 37 of 37
16 Jun 2025, 12:19 PM
#21
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,290
Plugin Contributions:
39

Edit issue on Product Page

Bruce1952:

That is what I requested the people that did the work before but appears to have not happend so I wasted more than enough money because they would not follow directions.

So what you are saying is to copy all files over the the dev directory and also the database is that correct and then start from scratch updating the dev site prior to shifting over to the live site would that be correct?

I will do that tomorrow or the next day but keep a copy on the server without the htacess folder and would that stop google or not?

In includes/templates/bootstrap/common/html_header.php you can change the robots tag to prevent unwanted indexing

<meta name="robots" content="noindex, nofollow" />

Will prevent indexing.

16 Jun 2025, 1:13 PM
#22
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Edit issue on Product Page

mprough:

In includes/templates/bootstrap/common/html_header.php you can change the robots tag to prevent unwanted indexing

<meta name="robots" content="noindex, nofollow" /> ``` > > Will prevent indexing.

This is what is already in the Live site should that be taken out:

title><?php echo META_TAG_TITLE; ?></title>
<meta name="google-site-verification" content="L55auhTKpdJpNcdV1JGB9zMvCV77JwRzhz0GevfF">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, shrink-to-fit=no">
<meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>">
<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>">
<meta name="author" content="<?php echo STORE_NAME ?>">
<meta name="generator" content="shopping cart program by Zen Cart®, <https://www.zen-cart.com> eCommerce">
<?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base, explode(",", constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base == 'down_for_maintenance' || $robotsNoIndex === true) { ?>
<meta name="robots" content="noindex, nofollow">
<?php } ?>

16 Jun 2025, 2:43 PM
#23
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Edit issue on Product Page

Bruce1952:

This is what is already in the Live site should that be taken out:

title><?php echo META_TAG_TITLE; ?></title>
<meta name="google-site-verification" content="L55auhTKpdJpNcdV1JGB9zMvCV77JwRzhz0GevfF">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, shrink-to-fit=no">
<meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>">
<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>">
<meta name="author" content="<?php echo STORE_NAME ?>">
<meta name="generator" content="shopping cart program by Zen Cart®, <https://www.zen-cart.com> eCommerce">
<?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base, explode(",", constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base == 'down_for_maintenance' || $robotsNoIndex === true) { ?>
<meta name="robots" content="noindex, nofollow">
<?php } ?>

No, that should not be removed; the lines I've highlighted above are providing that functionality.

The ROBOTS_PAGES_TO_SKIP constant is defined in /includes/extra_configures/robots_pages_to_skip.php.

16 Jun 2025, 3:10 PM
#24
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Edit issue on Product Page

What file or files do I need to change for the dev.outdoorking site. I have copied all the files from the live site to the dev site but now it is bringing up the live site.

I still have to do the database move but wanting to see the dev site is working

16 Jun 2025, 3:29 PM
#25
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Edit issue on Product Page

did you keep a copy of the dev site config files? use those in the dev site

16 Jun 2025, 3:35 PM
#26
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Edit issue on Product Page

Bruce1952:

Ok then how do I stop from being seen. What was in the htacess file was stopping everything and no one could see anything.
That .htaccess change on the dev site most likely limited access to only your IP address and that of the developer who made the change.

16 Jun 2025, 3:38 PM
#27
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Edit issue on Product Page

barco57:

did you keep a copy of the dev site config files? use those in the dev site

And they are located where?

16 Jun 2025, 3:46 PM
#28
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Edit issue on Product Page

includes/configure.php and YOUR_ADMIN/includes/configure.php

17 Jun 2025, 10:14 AM
#29
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Edit issue on Product Page

barco57:

includes/configure.php and YOUR_ADMIN/includes/configure.php

Ok I have shifted the live site to the dev along with the database now.

19 Jun 2025, 9:19 AM
#30
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Edit issue on Product Page

Hi All,

I am having an issue with the display of some fields on the site have been doing my head in trying to locate the correct file to adjust.

This is the image on the live site and I am wanting to remove the top availability item and leave the second one (that shows 7-12 days)

Attachment 20992

This is the Product type image showing it should not show on the list listing
Attachment 20993

This is the Product listing which is showing Quantity in stock should not show on the product listing.

Attachment 20994

If someone can tell me what File I should be looking at so as to remove or edit the display of the first available. I have tried to use the Developers Tool Kit to locate but have not had any luck locating the file to fix the issue.

Any assistance would be appreciated on where I should be looking and file location.

19 Jun 2025, 10:56 AM
#31
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,290
Plugin Contributions:
39

Re: Edit issue on Product Page

Again, what version of extra product fields in installed? Or not as the case looks to be?

19 Jun 2025, 12:42 PM
#32
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Edit issue on Product Page

mprough:

Again, what version of extra product fields in installed? Or not as the case looks to be?

Using this for product fields Numinix Product Fields

To my knowledge I have never installed extra product fields.

19 Jun 2025, 7:55 PM
#33
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Edit issue on Product Page

you are using the bootstrap template, correct?
go to admin menu > configuration > stock > SBA Show Stock Level on Product Info Page and set to false.

19 Jun 2025, 9:13 PM
#34
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Edit issue on Product Page

if my previous reply doesn't do anything with the dispaly of the additional "availability"

Send a screenshot of all of the setting in Admin Menu > Configuration > Numinix Product Fields.

19 Jun 2025, 10:20 PM
#35
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Edit issue on Product Page

barco57:

if my previous reply doesn't do anything with the dispaly of the additional "availability"

Send a screenshot of all of the setting in Admin Menu > Configuration > Numinix Product Fields.

Numinix Version 3.1.3
Upload folder for files: media
Fields to display on product info page: availability_id,product_warranty,v_products_pdf_attachment

Screen shots below showing what is listed:
Attachment 20995

Image two shows the two fields related to stock:
Attachment 20996

20 Jun 2025, 1:25 PM
#36
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Edit issue on Product Page

includes/templates/bootstrap/templates/tpl_product_info_display_details.php
add the line in red

<?php
//-bof-20241125-lat9-NPF additions
    $display_product_stock =  (!isset($flag_show_product_info_out_of_stock) ||  (!empty($flag_show_product_info_out_of_stock) &&  empty($products_out_of_stock)));
$display_product_stock = false;
?>
                <?= (($display_product_stock === true) ? '<li  class="list-group-item">' . PRODUCT_AVAILABILITY . '<strong>' .  $products_quantity . TEXT_PRODUCT_QUANTITY .  '</strong></li>'  : '') . "\n" ?>
<?php
20 Jun 2025, 2:15 PM
#37
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Edit issue on Product Page

barco57:

includes/templates/bootstrap/templates/tpl_product_info_display_details.php
add the line in red

<?php //-bof-20241125-lat9-NPF additions $display_product_stock = (!isset($flag_show_product_info_out_of_stock) || (!empty($flag_show_product_info_out_of_stock) && empty($products_out_of_stock))); $display_product_stock = false; ?>
            <?= (($display_product_stock === true) ? '<li  class="list-group-item">' . PRODUCT_AVAILABILITY . '<strong>' .  $products_quantity . TEXT_PRODUCT_QUANTITY .  '</strong></li>'  : '') . "\n" ?>
<?php ``` Thanks for that info but I had already taken the complete code out. It was code put in by one of the people that did work on the site and it took me a while to track it down and remove it. If it was added correctly I would not have needed to track it down as it should work in the product code area (Product general layout settings) to be able to turn it on or off in the layout settings. It should have been done correctly in the first place rather than just use a small piece of code and leaving issues. Once again money wasted.