WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Anyitems add to cart does not work
  • Print
Pages: [1]   Go Down

Author Topic: Anyitems add to cart does not work  (Read 5190 times)

daydreamer

  • Guest
Anyitems add to cart does not work
« on: October 30, 2011, 06:05:44 PM »
Hi, has anyone else found that using anyitems the add to cart or view cart does not work, as it sets incorrect url?

Thanks
Logged

daydreamer

  • Guest
Re: Anyitems add to cart does not work
« Reply #1 on: October 30, 2011, 09:05:29 PM »
Ok I seem to have solved the problem, anyone needing a quick fix here you go.

Open include.php find
Code: [Select]
// Settings of the anyitems function
$setting_items_per_page = $items_per_page;
$setting_num_cols = $num_cols;

After add
Code: [Select]
// Get continue url
$query_continue_url = $database->query("SELECT p.link FROM ".TABLE_PREFIX."pages p INNER JOIN ".TABLE_PREFIX."mod_bakery_page_settings ps ON p.page_id = ps.page_id WHERE p.page_id = ps.continue_url AND ps.section_id = '$section_id'");
if ($query_continue_url->numRows() > 0) {
$fetch_continue_url = $query_continue_url->fetchRow();
$setting_continue_url = WB_URL.PAGES_DIRECTORY.stripslashes($fetch_continue_url['link']).PAGE_EXTENSION;
}
Logged

freeSbee

  • Guest
Re: Anyitems add to cart does not work
« Reply #2 on: October 30, 2011, 09:28:20 PM »
Hi daydreamer

Thank you for the fix. I have just upgraded at AMASP:
http://www.websitebakers.com/pages/code-snippets/listings/anyitems.php

Regards Christoph
Logged

daydreamer

  • Guest
Re: Anyitems add to cart does not work
« Reply #3 on: October 31, 2011, 11:11:21 AM »
Your welcome, I really needed this working for a client.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Anyitems add to cart does not work
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2