Forums / Addon Shipping Modules / Unwanted "code" showing on shopping cart pages - Advanced Shipper

Unwanted "code" showing on shopping cart pages - Advanced Shipper

Views: 2,170

Results 1 to 17 of 17
17 Jun 2011, 4:25 PM
#1
art_room avatar

art_room

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Unwanted "code" showing on shopping cart pages - Advanced Shipper

Hello,

Am using Zencart version 1.3.9h. mySQL version is 5.0.92-community.

http://www.piecemakers.com/shopping_cart_page.html shows one whole page of our "view shopping cart" page showing one item ordered. Everything you see in small print below the "Back to Shopping" button and above the "Estimate Shipping Costs" line appeared for the first time yesterday. We have no idea where it came from!! We had not even added any items to our product line between the time that everything was normal and then not normal.

First, I replaced the "includes" folder inside the shopping cart folder with a backed up version. Then, I tried restoring an SQL backup from April 21, 2011, but nothing changed.

I also get a random wholesale page if I log in before shopping but am still able to navigate and order. Have attempted to order on Safari (version 4.1.3) and Firefox (version 3.6.17) - on Macs - and Internet Explorer 8 - on a Windows XP PC - with the same results on all. If I order anything other than ribbon (which is what you see on the linked page) I only get about the first four lines of the small print.

When we go to the checkout page there is a long stretch of the floral background before the checkout window shows up because all the small print and code you see on the view shopping cart page is on the floral background - almost invisible.

Please help! The webmaster who set this up is not available for troubleshooting.

17 Jun 2011, 6:20 PM
#2
art_room avatar

art_room

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

This is "art room" again. It looks like much of the information being displayed has to do with the Advanced Shipper Config under the Modules dropdown in admin.

"Method 1" in the advanced shipper config has to do with a flat $3.00 shipping rate for some items. Ribbon is one of those. I tested it by ordering other items listed under that flat rate method and they all get the same lengthy display of unwanted info on the " shopping cart contents" page. Items with a shipping weight only have the first line of the unwanted info displayed.

How can I stop the display of all the small print and code on the shopping cart contents and checkout pages?

18 Jun 2011, 12:10 PM
#3
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

It's difficult to tell from an image, because we can't see the generated code, but check to make sure that you haven't loaded the includes/modules/shipping/ level file into the includes/languages/english/modules/shipping/ level. Though that should generate a "Cannot redeclare class blah blah blah already declared at blah blah blah" error. Still worth checking though.

Vger

18 Jun 2011, 2:51 PM
#4
art_room avatar

art_room

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

Thank you, Vger, for your answer. I checked and the advanced shipper folder is in the correct place. There is one file at the includes/languages/english/modules/ shipping/ level named advshipper.php, but I think it has always been there.

If you placed an order and then looked at the "view source" (or whatever your browser says) for that window, would you be able to see the code you need to see?

18 Jun 2011, 3:04 PM
#5
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

There is one file at the includes/languages/english/modules/ shipping/ level named advshipper.php, but I think it has always been there.

But what does it contain? Simple language entries or lots of php coding?

If you placed an order and then looked at the "view source"

If you want people on forums to help out by actually running test orders then the forum etiquete is to help them to do that by setting up a test account and posting the user name and password for that test account - rather than those trying to assist all having to go through the account set up process.

Vger

18 Jun 2011, 10:35 PM
#6
art_room avatar

art_room

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

Hello Vger,

My sincere apology for breaching the forum etiquette - I appreciate the correction.

I looked at the advshipper.php and believe it is just simple language, after comparing it with the advshipper.php in includes/modules/shipping.

I set up an identity to use for placing a test order on our site - http://www.piecemakers.com/products.html. The email address to enter is [email protected] and the password is thisisatest If you want to make a test order, order silk ribbon and you will see the whole string of text and code.

Thank you for your time and expertise.

18 Jun 2011, 11:29 PM
#7
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

Have to be tomorrow now. Past midnight in the UK.

Vger

19 Jun 2011, 12:11 PM
#8
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

Well,if I go to the site, put a Ribbon item in the cart and then Login I go to a page which says:

wholesale_retail
This is another page that is linked to the Chapter 10 via the Chapter number used and is sorted based on the TOC Order.

There is not a link to this page via the Header, Footer nor the Sidebox.

This page is only seen if the "main" link is selected and then it will show in the TOC listing.

This is a handy way to have numerous links that are related but only show one main link to get to them all.

If I then click on the Checkout link in the header I go to a page where the header does not begin until more than halfway down the page - and this code is the reason:

<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head> <title>Checkout : Piecemakers Country Store, Products Pages</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta name="keywords" content="Gift Certificates Books Patterns Of The Month Silk Ribbon, Threads & Trims CD's & Live Videos Kits Galore Patterns Fabrics Piecemakers Needles Soap Supply Shop Di van Niekerk Piecemakers Quilts Clothing & Accessories Wholesale Piecemakers Calendars, Calender Patterns & Quilt Cards Yummy Treats Notions Handmade Art and Crafts Catch of the Week Beads Galore Holiday Gifts and Decorations Doll & Critter Making Supplies Home Furnishings Tabletop and Kitchen Toys ecommerce, open source, shop, online shopping, quilt store, quilting, ribbon embroidery, fabric store, craft shop, piecemakers, piecemakers country store, free patterns, books, links, craft classes, fabrics, Jesus Christ, god, holy spirit, events, craft fairs, silk ribbon embroidery, Ridgway, Ouray, Colorado, vacation home rental, colorado ranch, costa Mesa, California, <https://www.piecemakers.com> Checkout"><meta name="description" content="Piecemakers Country Store : Checkout - Gift Certificates Books Patterns Of The Month Silk Ribbon, Threads & Trims CD's & Live Videos Kits Galore Patterns Fabrics Piecemakers Needles Soap Supply Shop Di van Niekerk Piecemakers Quilts Clothing & Accessories Wholesale Piecemakers Calendars, Calender Patterns & Quilt Cards Yummy Treats Notions Handmade Art and Crafts Catch of the Week Beads Galore Holiday Gifts and Decorations Doll & Critter Making Supplies Home Furnishings Tabletop and Kitchen Toys ecommerce, open source, shop, online shopping, quilt store, quilting, ribbon embroidery, fabric store, craft shop, piecemakers, piecemakers country store, free patterns, books, links, craft classes, fabrics, Jesus Christ, god, holy spirit, events, craft fairs, silk ribbon embroidery, Ridgway, Ouray, Colorado, vacation home rental, colorado ranch, costa Mesa, California, www.piecemakers.com"><meta http-equiv="imagetoolbar" content="no"><meta name="author" content="Piecemakers"><meta name="generator" content="Piecemakers Country Store"><base href="https://www.piecemakers.com/products.html/"></head><body id="checkoutBody"><br>Product Index 0 potentially covered by Methods: 1, 2<br>

Method 2 excluded as no Region matches the customer's address.<br>

<br>Product Index 0 covered by method: 1<br>

<br>Product Index 1 potentially covered by Methods: 1, 2<br>

<br>Product Index 1 covered by method: 1<br>

Region 1 being used: Domestic<br>
Table of Rates for Region 1:

<weight>500:3</weight>
<br>

<br>Product for Method 1: Product Index: 0: Acorn Woods 164 - Thread Gatherer Hand-Dyed Silk Ribbon 4mm<br>

<br>Product for Method 1: Product Index: 1: Abalone - 5/8" Width Variegated Hanah Silk Hand-Dyed Ribbon By The Yard<br>

<br>Total price of 2 applicable product(s) for method 1: 6.95<br>

<br>Total number of items of 2 applicable product(s) for method 1: 2<br>

<br>Total weight of 2 applicable product(s) for method 1: 0<br>

<br>Num of packages required: 1<br>

<br>Package weight: 0<br>
Calculation method being tried: weight<br>
Remaining table of rates: 500:3<br>
Parsing limits string: 500<br>

Calculation value being tested against: 0<br>
Rate string being used: 3<br>

<br>Package rate: 3<br>
Rate identified for Method 1: 3<br>
Surcharge rate string being used for method 1: 0<br>
Flat rate being used for surcharge: <br>
<br>
Applicable Product Index(es) for Method 1... 0,1<br>
<br>

Usable Methods for Product Index 0... 1<br>
Usable Methods for Product Index 1... 1<br>
<br>Examining methods for Product Index 0...<br>

<pre>array(0) {<br> }<br> </pre>Product Index 0 -- Product Method Index 0 -- Method 1: not already being used.<br>

<br>Current list of method combinations...<br>

<pre>array(1) {<br> [0]=><br> int(1)<br> }<br> </pre><br>Examining methods for Product Index 1...<br> <pre>array(1) {<br> [0]=><br> int(1)<br> }<br> </pre>Product Index 1 -- Product Method Index 0 -- Method 1: already being used.<br>

<br>Examining methods for Product Index 2...<br>

<pre>array(1) {<br> [0]=><br> int(1)<br> }<br> </pre>

<br>Usable methods combinations...<br>

<pre>array(1) {<br> [0]=><br> array(1) {<br> [0]=><br> int(1)<br> }<br> }<br> </pre><br>Usable method, rate and instance combinations...<br> <pre>array(1) {<br> ["1-0-0"]=><br> array(1) {<br> [0]=><br> array(4) {<br> ["method"]=><br> int(1)<br> ["rate_i"]=><br> int(0)<br> ["instance_i"]=><br> int(0)<br> ["timestamp"]=><br> NULL<br> }<br> }<br> }<br> </pre>

This appears BEFORE your header content. So the code for Advanced Shipper has obviously been inserted in the wrong place. Please note - I don't see this code on the page itself, only in the "Generated Source" underlying the page.

If I select Check/Money Order as the payment method and go to Stage 3 of Checkout the new page appears as normal. I can then complete the order.

So the problem is limited to Shipping and specifically to the Advanced Shipping module you installed.

Vger

19 Jun 2011, 12:47 PM
#9
art_room avatar

art_room

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

Thank you in advance - I have to go home and eat breakfast and then I'll be back to read what you wrote.

19 Jun 2011, 2:52 PM
#10
art_room avatar

art_room

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

The "wholesale" page that you quoted is the same one I referred to in my first post. If I clicked on "shopping cart" when on that page it took me to the shopping cart contents (with all the extra code).

When you say that the advanced shipping module is installed in the wrong place - do you know what file I should look in (or replace from a backup) to correct the problem? We never had this happen until three days ago and the advanced shipper module was installed in 2009, I believe, and our Zencart version upgraded in October of 2010. Please understand you are dealing with a total novice here.

My co-worker and I are now having to troubleshoot an application about which we thought we were going to be able to remain blissfully ignorant, so we are grateful for the time you have given.

19 Jun 2011, 4:00 PM
#11
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

Hi,

The text that you are seeing is the debug output from the module.. it is telling you how it is calculating the rates and creating the combination of methods that will be used to ship the products in the cart.

Someone at your company must simply have enabled the debug mode.

I'll reply to you in person, there's no need for you to post here.

All the best..

Conor
ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

19 Jun 2011, 4:10 PM
#12
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

Conor is, in all likelyhood, correct. Going back and highlighting the space at the top of the page I can now see the output - which was previously hidden by the site's background images.

I'll reply to you in person, there's no need for you to post here.

Conor should know full well that this isn't the correct way to deal with things. Forum etiquette is that solutions should be dealt with and posted on the forums for all to see and not done in private by PM.

Vger

19 Jun 2011, 4:17 PM
#13
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

Hi,

How are you?

Vger:

Conor should know full well that this isn't the correct way to deal with things. Forum etiquette is that solutions should be dealt with and posted on the forums for all to see and not done in private by PM.

I'm not keeping anything secret.. I'm not permitted to support the distribution on the forum.. I just wanted to let you know that I was sorting this out for Deborah (via e-mail I don't use the PM system).. I thought giving the solution would count as "supporting" the software here and didn't want to fall foul of the rules.

I'm sure you understand!

I should probably have simply enabled the PM system and PMed you to let you know.. sorry, was just doing what was quickest and posted.

Enjoy the rest of your weekend! Back to coding Ceon URI Mapping 4.0.0 for me.. :)

All the best...

Conor
ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

19 Jun 2011, 5:16 PM
#14
art_room avatar

art_room

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

Scratch the message above. When you said the advanced shipping module is installed in the wrong place I knew whatever comes next is way over my head, sooo... I took a chance and emailed CEON that developed the module. He wrote right back and said that there is a setting called debug mode, which had been switched on and needed to be turned off (how it was turned on is a mystery that will probably never be solved). Anyway, that worked and all the code is gone.

Again, thank you, thank you, for your time and help.

19 Jun 2011, 5:20 PM
#15
art_room avatar

art_room

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

I need to explain - when I said scratch the message above I meant the last message I had directed to Vger. I didn't even see the communication that had taken place between Conor and Vger. Sorry!!

19 Jun 2011, 10:17 PM
#16
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

It's just good news that it has been resolved for you.

Vger

22 Jun 2011, 1:44 AM
#17
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,857
Plugin Contributions:
18

Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

Interesting that I know of at least two sites that mysteriously did the same thing at the same time.:huh:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com