Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default re-coding success message to work with Magic SEO URL?

    I found out that if you have the "display cart after adding product" option set to false in configuration/my store when you are using Magic SEO URL the "success" message won't display. The author told me that it is caused by automatic redirection from original URLs and that the only way around it is some re-coding of the zencart core code due to problems with session variables.

    Is this something that can be done relatively easily or does it involve a major rewrite of core code? I have been finding with test users of our site that the "success" message is important to avoid confusion of whether or not the product has been added to the cart, so I really want to keep this feature. If it is too difficult or involved, can anyone suggest an alternative to notify the user that the item has been added to the cart? It shows up in the shopping cart sidebox of course but sometimes that isn't obvious and you have to keep the not-too-computer-savvy users in mind.

    Thanks!

    Matt

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: re-coding success message to work with Magic SEO URL?

    I found out that if you have the "display cart after adding product" option set to false in configuration/my store when you are using Magic SEO URL the "success" message won't display. The author told me that it is caused by automatic redirection from original URLs and that the only way around it is some re-coding of the zencart core code due to problems with session variables.
    Sorry- but it isn't our problem or job to rewrite to code to work with an outside add on.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: re-coding success message to work with Magic SEO URL?

    Quote Originally Posted by Kim View Post
    Sorry- but it isn't our problem or job to rewrite to code to work with an outside add on.
    Thanks for the helpful advice!!

    I wasn't asking you to rewrite the code, just for opinions about what it would take to get it to work so I could see if it's feasible to get a rent-a-coder to do it without it costing a big chunk of change. I would of course pass along the code to the community. Or perhaps someone could offer a solution to do a success notification in a different way which would be easier to implement and without changing any core code, such as an if-then type of statement. If add to cart buton is clicked then display this message. But I am still in php 101 so I am speaking from an ignorant viewpoint!

    Matt

  4. #4
    Join Date
    Jun 2007
    Posts
    70
    Plugin Contributions
    1

    Default Re: re-coding success message to work with Magic SEO URL?

    Hello Mat,

    Very simple solution has been found. As I mentioned in other thread some time ago, it is necessary to modify ZenCart sources in order to fix this issue.
    Exact required step is following:

    Please open includes/classes/message_stack.php

    Find:
    PHP Code:
    $_SESSION['messageToStack']= ''
    Replace with:
    PHP Code:
    $_POST['msuSaveMessages'] = true;
    $_SESSION['messageToStack']= ''

 

 

Similar Threads

  1. Replies: 10
    Last Post: 22 May 2013, 06:30 PM
  2. Search Engine Friendly URLS - Ultimate SEO URL VS magic URLa
    By creamcrackers in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 8 Oct 2009, 06:55 PM
  3. Magic SEO URL vs Ultimate SEO URL vs SEO_G
    By rmowles in forum All Other Contributions/Addons
    Replies: 142
    Last Post: 21 Sep 2008, 12:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg