Jump to content

 

SkywayWebDesign

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

Posts I've Made

In Topic: Product Code - Can They Be Updated With A Product Import?

07 December 2018 - 01:02 AM

We have an addon for exactly this purpose. We don't advertise it but if you contact me, I'll sell it to you for $20.

It works like this:

 

1) Do a normal export that includes product_Id and product_code in the 'Product id' and 'Product code' columns.

2) Change the value of 'Product code' to be whatever you want for each product you want to change.

3) Import via a custom import and it will set the product_code for each product_id to that which is in the CSV.

4) Optionally do a standard import to apply changes to other columns.

 

It's simply a special import that only makes the adjustments to the product_code for the product_ids in the CSV.

Great, thanks!  I may take you up on the offer.  I'm going to try direct database manipulation first and if it starts to take up a little too much time or becomes a pain to do, I'll definitely want it.  I created a similar custom importer (same situation) with the last shopping cart we had, but I don't have enough time these days to do it again and am glad you already made one. :)

Where can I buy it from and what versions of CS-Cart does it work with?  (we'll probably be updating the cart in the spring once the season slows down some)


In Topic: Product Code - Can They Be Updated With A Product Import?

05 December 2018 - 04:41 PM

Since product code is used as primary key, it is required to rework import feature according to your needs

 

As alternative, import new SKU for each item, for example, as promo text field. Then in phpMyAdmin move value from promo text to product code column

Thanks for the info!  I was pretty sure I would have to do it directly in the database, but just wanted to make sure I didn't miss any tricks in the admin area... :)


In Topic: Paypal Orders Coming Through As Pending

16 November 2018 - 12:50 PM

From the CS-Cart Architects, a better fix solution is posted here:

https://gist.github....3bdb4469e29f371


In Topic: Paypal Orders Coming Through As Pending

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;
    }


In Topic: Paypal Ipn And Google Recaptcha (Addon From Ecom Labs) Stoped Working

14 November 2018 - 08:31 PM

Thank you everyone for the help/fix with this one!  (And especially CS-Cart Support, "E.Qi.Librium" for the modified Http.php file and "The Tool" for making it super easy to find and copy/paste the updated piece of code)  Well done!
 
Teaching/Learning moment:  Please correct me if I'm wrong, but it seems like changes on the server (in most cases here, the WHM update) caused the cart to no longer recognize and fully respond to the newer network protocol (HTTP/2) being used. While code was needed in the cart to update this issue of course, the problem did originate during the server update. Am I missing anything here?