Page 15 of 20 FirstFirst ... 51314151617 ... LastLast
Results 141 to 150 of 198
  1. #141
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Ceon Back In Stock Notifications 3.0.0

    juneloweelyn, I took a look at the Ceon back in stock notifications module. You're going to need to add the 'additional reference' whatever URI mapping plugin you have used to this code:
    admin/includes/functions/back_in_stock_notifications_functions.php

    Code:
    function buildLinkToProductAdminPage($name, $id, $products_type)
    {
        global $zc_products;
        
        $type_admin_handler = $zc_products->get_admin_handler($products_type);
        
        $name_length = 55;
        
        $new_name = '<a href="' . zen_href_link($type_admin_handler, 'pID=' . $id . '&product_type=' .
            $products_type . '&action=new_product', 'NONSSL', true, true, false, false) . '" title="' .
            htmlentities($name, ENT_COMPAT, CHARSET) . '" target="_blank">' .
            htmlentities(substr($name, 0, $name_length), ENT_COMPAT, CHARSET) .
            (strlen($name) > $name_length ? '...' : '') . '</a>'; 
        
        return $new_name;
    }
    I'm assuming this is the global function that builds the product id and link.

    You may need to add the same type of reference to handle the extra output on a number of other files related to what the customer can see in 'my account'.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.

  2. #142
    Join Date
    Jan 2014
    Location
    nc
    Posts
    5
    Plugin Contributions
    0

    Default Re: Ceon Back In Stock Notifications 3.0.0

    Quote Originally Posted by Scott Benton View Post
    hello there ,i just read all the thread (o.k almost all of it ) and i couldn't find answers.
    there is 2 problems.

    1.when you click on (To be notified when this product is back in stock please click here.) so it stay on the same page and the url look like that (-tr-073-p-17948.html#back_in_stock_notification_form

    2.when i submit the form by clicking the notify me button so from here on nothing working ,there isn't any new in database ,and the no notification that i submit the form.

    please help .

    Was this ever solved?

    I have an zc 1.50 upgraded from 1.39

    I also have ultimate SEO 2.212 installed that is rewriting the form submit URL.


    if i turn off SEO it works fine and url for action="" is below
    index.php?main_page=back_in_stock_notification_subscribe&products_id=

    if i turn on SEO then it just throws in the url of the product page that i am on.

    anyone have anything on this?

  3. #143
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: Ceon Back In Stock Notifications 3.0.0

    Quote Originally Posted by speedmaxtor View Post
    Was this ever solved?

    I have an zc 1.50 from 1.39

    I also have ultimate SEO 2.212 installed that is rewriting the form submit URL.


    if i turn off SEO it works fine and url for action="" is below
    index.php?main_page=back_in_stock_notification_subscribe&products_id=

    if i turn on SEO then it just throws in the url of the product page that i am on.

    anyone have anything on this?
    If you believe you need an URL rewriter then try installing the one from Ceon. Try then together in a test environment but I *think* they play well together.
    http://www.zen-cart.com/downloads.php?do=file&id=889

  4. #144
    Join Date
    Jan 2014
    Location
    nc
    Posts
    5
    Plugin Contributions
    0

    Default Re: Ceon Back In Stock Notifications 3.0.0

    I have thousands of products listed in search engines using those urls. Changing SEO now would be certain sales death for indexing and placement just for back in stock location button. Plus I am sure the problem seems to be in the .htaccess file. There is something missing from the htaccess file to rewrite the form url. I am trying to locate ceon seo .htaccess now to compare the differance.

  5. #145
    Join Date
    Jan 2014
    Location
    nc
    Posts
    5
    Plugin Contributions
    0

    Default Re: Ceon Back In Stock Notifications 3.0.0

    I figured it out!

    I would have never guessed it but developer left out basic form tag. I guess zen-cart is just throwing a default one in making it work with no seo. Turn on SEO and there is no url and SEO puts in page that its on.

    Added this line to tpl_product_info_display.php and bingo it works great. now it has the correct url to submit form to. Now just have to add in to all the other templates.

    echo '<form name="back_in_stock_notification" action="http://www.mysite.com/index.php?main_page=back_in_stock_notification_subscribe&products_id=' .$_GET['products_id']. '" method="POST">';

  6. #146
    Join Date
    Jan 2014
    Location
    nc
    Posts
    5
    Plugin Contributions
    0

    Default Re: Ceon Back In Stock Notifications 3.0.0

    This is causing mysql error in account_back_in_stock_notifications.html coming from account_back_in_stock_notifications/header_php.php most likely because of the "';"; that is not allowed with my version of mysql anyway. there are two places in the script that have this coding error. but once i fix this i only get a blank page.


    $subscribed_notification_lists_query = "
    SELECT
    bisns.id, bisns.product_id, pd.products_name, bisns.date_subscribed
    FROM
    " . TABLE_BACK_IN_STOCK_NOTIFICATION_SUBSCRIPTIONS . " bisns
    LEFT JOIN
    " . TABLE_PRODUCTS_DESCRIPTION . " pd
    ON
    bisns.product_id = pd.products_id
    LEFT JOIN
    " . TABLE_CUSTOMERS . " c
    ON
    c.customers_id = bisns.customer_id
    WHERE
    (bisns.customer_id = '" . (int) $customer_id . "'
    OR
    c.customers_email_address = bisns.email_address)
    AND
    pd.language_id = '" . (int)$_SESSION['languages_id'] . "';";

  7. #147
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Ceon Back In Stock Notifications 3.0.0

    what are 'fixing' that query with?
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.

  8. #148
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Ceon Back In Stock Notifications 3.0.0

    Quote Originally Posted by speedmaxtor View Post
    I figured it out!

    I would have never guessed it but developer left out basic form tag. I guess zen-cart is just throwing a default one in making it work with no seo. Turn on SEO and there is no url and SEO puts in page that its on.

    Added this line to tpl_product_info_display.php and bingo it works great. now it has the correct url to submit form to. Now just have to add in to all the other templates.

    echo '<form name="back_in_stock_notification" action="http://www.mysite.com/index.php?main_page=back_in_stock_notification_subscribe&products_id=' .$_GET['products_id']. '" method="POST">';
    I would think that the correct way to do this is to use the "zen_draw_form()" function.. but someone can correct me if I am wrong..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  9. #149
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,403
    Plugin Contributions
    87

    Default Re: Ceon Back In Stock Notifications 3.0.0

    Quote Originally Posted by DivaVocals View Post
    I would think that the correct way to do this is to use the "zen_draw_form()" function.. but someone can correct me if I am wrong..
    Using zen_draw_form, as DivaVocals indicated, will also automatically include the hidden input for the session variable ... without which forms using the 'post' method will fail on Zen Cart versions later than v1.5.0.

  10. #150
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default Re: Ceon Back In Stock Notifications 3.0.0

    I would have never guessed it but developer left out basic form tag.
    Since I have been using this plugin for ages with no issues, as is usually the case with Conor's code...this line finally got me annoyed enough to look in the plugin code for tpl_product_info_display.php.

    I find these snippets which build the form:
    PHP Code:
      $form_start_tag zen_draw_form('back_in_stock_notification',    zen_href_link(FILENAME_BACK_IN_STOCK_NOTIFICATION_SUBSCRIBEzen_get_all_get_params(),    $request_type), 'POST');    $back_in_stock_notification_form->setVariable('back_in_stock_notification_form_start_tag',    $form_start_tag); 
    followed by
    PHP Code:
      print $back_in_stock_notification_form->getXHTMLSource(); 
    So if you are having to manually add in the form code/reinvent this particular wheel, that means the plugin code is not being output as per design, so you need to investigate the conditions:
    PHP Code:
    if (isset($back_in_stock_notification_build_form) && $back_in_stock_notification_build_form) { 
    and find out why.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

 

 
Page 15 of 20 FirstFirst ... 51314151617 ... LastLast

Similar Threads

  1. Replies: 146
    Last Post: 13 Dec 2020, 09:52 AM
  2. Back In Stock Notifications
    By conor in forum All Other Contributions/Addons
    Replies: 509
    Last Post: 11 May 2016, 03:02 PM
  3. Replies: 4
    Last Post: 14 Feb 2013, 09:33 PM
  4. v139h Back In Stock Notifications only notify customers ONE time?
    By SRQHoyas in forum General Questions
    Replies: 0
    Last Post: 9 Jun 2012, 01:58 PM
  5. Problems with Back In Stock Notifications addon
    By dhanesh in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Aug 2008, 02:26 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR