Jump to content

 

SkywayWebDesign

Member Since 27 Jan 2018
Offline Last Active Dec 07 2018 12:57 AM
-----

#308978 Paypal Orders Coming Through As Pending

Posted by SkywayWebDesign on 14 November 2018 - 08:41 PM

I was following a bunch of threads on this IPN issue, but the solution that worked for us was posted here (on Page 2) - by "The Tool" - I hope this helps:

https://forum.cs-car.../page-2?hl=ipn

 

/app/Tygh/http.php:

 

Find

    /**
     * Parse response contents to split headers
     * @param  string $content response contents
     * @return string contents without headers
     */

    private static function _parseContent($content)
    {
        while (strpos(ltrim($content), 'HTTP/1') === 0) {
            list(self::$_headers, $content) = preg_split("/(\r?\n){2}/", $content, 2);
        }

        return $content;
    }

 

Replace:

    /**
     * Parse response contents to split headers
     * @param  string $content response contents
     * @return string contents without headers
     */

    private static function _parseContent($content)
    {
       while (strpos(ltrim($content), 'HTTP/1') === 0) {
            list(self::$_headers, $content) = preg_split("/(\r?\n){2}/", $content, 2);
        }
        
       
while (strpos(ltrim($content), 'HTTP/2') === 0) {
            list(self::$_headers, $content) = preg_split("/(\r?\n){2}/", $content, 2);
        }

        return $content;
    }




#294142 Separate Main Content Sections On Category Pages

Posted by SkywayWebDesign on 27 January 2018 - 08:09 PM

Unique content can be added from the Update category page. You can use the following content as default:

<div class="hidden"></div>

(!) Do not forget to switch WYSIWYG editor to source code mode

 

Thanks for the great info - Here are the notes I created for future reference (hope it helps):

Step 1) Design->Layouts->(then go to the "Categories" tab)
Step 2) "Add grid or block" (the plus sign) to the Grid under the Main Content block (I created a new HTML block and added the <div class="hidden"></div> code to the content while in "Source code" mode (<>) to create the required blank content)
Step 3) Now go to the individual Products->Categories page and select the category you want - then select the individual "Layouts" tab from this category page - Scroll down and edit the block you just recently created above and then click the Content tab - This content is unique to each category. Be sure to remove the <div class="hidden"></div> code from the Source code view (if you used it) - otherwise the text you type in normal editor mode (WYSIWYG) will be hidden.
Good luck!