Shopping Cart $Page Array Details not displaying

Get answers to your installation and setup questions.
Post Reply
User avatar
littletoons
Experience Level 10
Experience Level 10
Posts: 1208
Joined: Mon Oct 01, 2007 9:53 am
Location: Atlanta, Georgia USA
Contact:

Shopping Cart $Page Array Details not displaying

Post by littletoons » Mon Jan 25, 2016 6:04 pm

I need to tap into the $page array
and specifically the Cart -> Subtotal -> FormattedPrice or Amount etc
For some reason this is not working. Of course I find what I'm looking for with

Code: Select all

<?php print_r($page); ?>
then I use

Code: Select all

<?php echo $page['Cart']['Subtotal']['Amount']; ?>
To display while on the shopping cart page and nothing displays ... it of course displays within the entire $page array. Ideas?
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

mcarp555
Admin
Admin
Posts: 4088
Joined: Thu Sep 14, 2006 5:19 pm
Location: United Kingdom
Contact:

Re: Shopping Cart $Page Array Details not displaying

Post by mcarp555 » Tue Jan 26, 2016 2:14 am

Are you trying to pull the data into a custom box or on the actual cart page? I'm thinking the data is not available from the $page array to use in a custom box (especially if the box uses an external file). Maybe if you transform the info into standard PHP variables, then use the variables instead.

It may also require the use of a <form> as well.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

jquarta
Experience Level 7
Experience Level 7
Posts: 532
Joined: Thu Nov 30, 2006 7:09 am
Location: Big Sky Country, Montana
Contact:

Re: Shopping Cart $Page Array Details not displaying

Post by jquarta » Wed Jan 27, 2016 8:01 am

Carl: The cart script is not functioning properly anyway, just want you to know! The update cart area is not updating in the AOM cart, it is believed to be an Amazon merge error, because of changes they made in their API. We are waiting for repair!

Joe...
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

jquarta
Experience Level 7
Experience Level 7
Posts: 532
Joined: Thu Nov 30, 2006 7:09 am
Location: Big Sky Country, Montana
Contact:

Re: Shopping Cart $Page Array Details not displaying

Post by jquarta » Wed Jan 27, 2016 10:10 am

Carl:

Forgot to add this: It can't be placed in a custom box, but can be placed in a separate header file! The Mini-Cart in AOM must be toggled on for this to show though. Then make CSS changes to reflect what you want shown!

<iframe
id="content" style="" allowtransparency="true"
src="http://yourwebsite/shop.php?a=minicart"
noresize="noresize" vspace="0" hspace="0"
marginwidth="0" marginheight="0" frameborder="0"
height="12" scrolling="no" width="100%"></iframe>

Joe...
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests