Re: Save For Later Support Thread
Nope. Installed a fresh copy of ZCv1.38a and SFL on the server. the same issue again :( It seems the problem is with the server setup. I really miss feature, it worked on my local machine. Is there any PHP4 specific setting i missed to configure.
Also the phpMyAdmin shows an warning 'mbstring PHP extension was not found and without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results'. Is the error due to this?
Re: Save For Later Support Thread
Issue Solved
In /includes/functions/extra_functions/sfl_functions.php
Changed line 568
Code:
$cart->add_cart($_POST['products_id'], $cart->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids))+($new_qty), $real_ids);
to
Code:
$_SESSION['cart']->add_cart($_POST['products_id'], $_SESSION['cart']->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids))+($new_qty), $real_ids);
Also changed line 658
Code:
$cart->remove($_GET['product_id']);
to
Code:
$_SESSION['cart']->remove($_GET['product_id']);
Thanks for your support,
Anoop
Re: Save For Later Support Thread
I suspect this change will cause problems if the person's session times out and they press the shopping cart page button - no?
The real fix for this problem is to upgrade to PHP5.
Re: Save For Later Support Thread
Checked for session time out, no errors were noticed. As long as this works, the issue is fixed for me. I will be using PHP5 for my next project.
Thanks,
Anoop
2 Attachment(s)
Re: Save For Later Support Thread
I have a problem with this. I've installed it and it's working fine but when all items are saved in the SFL section and there are no items in the shopping cart section then my right column is being distorted. If there is an item in both the shopping cart and saved cart then the column is undistorted? A solution is much appreciated. See attached picture. :unsure:
Re: Save For Later Support Thread
Quote:
Originally Posted by
globalmemory
I have a problem with this. I've installed it and it's working fine but when all items are saved in the SFL section and there are no items in the shopping cart section then my right column is being distorted. If there is an item in both the shopping cart and saved cart then the column is undistorted? A solution is much appreciated. See attached picture. :unsure:
Looks like a </div>(or one of the table tags) goes missing somewhere in between states of cart with products and only save for later, this is template specific because it hasn't happened on the sites that I implemented this on. Did you merge the tpl_shopping_cart_default.php file? If so then I think you might have missed a closing tag somewhere. So, look at the source on the shopping cart page to see if you can trace where there is a missing </div> or </tr> or </table> etc tag.
Re: Save For Later Support Thread
Thanks for your response. I've copied the files exactly as they are? can i send you the file so you can have a look at it?
Re: Save For Later Support Thread
A careful comparison between your original file and the modified file should show the difference. Did the template you are using come with an includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php file? If so, that means there were changes made to the default file which is why it's in your overrides directory and by just dropping in the file that came with save for later you lost the customizing that your template's file has.
If you don't have a comparison tool yet, I would suggest winmerge, it's free and easy to use. You need to merge only those parts that have to do with save for later, sometimes there are other differences to do with using different version core files or other changes that have been made for other mods or templates.
Re: Save For Later Support Thread
I first of all used winmerge to merge the files and then noticed this problem. I then copied the file as is and the problem still persists?
Re: Save For Later Support Thread
Then the problem is a latent bug in your template that this change uncovered. Use an xhtml validator to track down the problem.