Jump to content

Moving "QuickBuy" to Customers orders page


Guest alt

Recommended Posts

Hi,

Looking at the view shopping cart page you will see that there is a block saying "Want to add more items? Enter the Product Code:" followed by an input field and a button.

I would like to move this feature so that when a customer views their orders after logging in they can add products to their cart without having to leave the page.

I have tried pasting the code from yourSkin/styleTemplates/Content/cart.tpl:

<form action="{VAL_FORM_ACTION}" method="post" class="quickBuy" style="padding: 4px;">

{LANG_ADD_PRODCODE}

<input name="productCode" type="text" size="9" class="textbox" /> <input name="submit" type="submit" class="submit" value="{LANG_ADD}" /></form>

but of course the text (the "Want to add more items..." and the "Add" text over the button) doesn't show, although the button and input field appear, and the feature will not add any products to the cart either.

I tried adding: "include_once($glob['rootDir']."/cart.php");" to the "includes/content/viewOrders.ini.php" file but still no joy!

What am I missing???

Kind regards,

ALT

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...