Jump to content

Christopher Short

Member
  • Posts

    432
  • Joined

  • Last visited

Posts posted by Christopher Short

  1. 9 minutes ago, bsmither said:

    To review:

    In admin, go to Products. From the drop-down selector, choose a category. (Once selected, the form auto-submits.)

    From the reduced list, what is there that you can bulk edit?

    When you say, "you can update every product in that category," are you referring to actually working your way through each product individually?

    Then, "you cannot get to the next category without first clicking back tot the top product list page," you are experiencing the inability to choose a different category directly from the drop-down selector?

    I do see an anomaly in the resulting URL shown in the browser address bar, but otherwise it seems to work for me.

     

    Yes. I can edit every product in that category, but to choose another product, you have to go back to the master product list, then select a new category. It only does it if you actually make a change to a product in the current category. If you just view, it will let you continue on down the category list.

  2. This was fixed at one point but seems to be broken again. If you click on a product in the admin, after sorting by category(using the filter drop down), you can update every product in that category. However, you cannot get to the next category without first clicking back tot the top product list page. Can we fix this? It would be nice to be able to click down the filter drop down category lists as you make updates without the extra steps to continue on.

     

  3. 2 hours ago, bsmither said:

    It's there, five lines after Case 'VERIFIED':

     case 'VERIFIED':
                        switch ($_POST['payment_status']) {
                            case 'Completed':
                                $transData['notes'][]    = "Payment successful. <br />Address: ".$_POST['address_status']."<br />Payer Status: ".$_POST['payer_status'];
                                $order->paymentStatus(Order::PAYMENT_SUCCESS, $cart_order_id);
                                $order->orderStatus(Order::ORDER_PROCESS, $cart_order_id);
                                break;

    I guess this line? I had this fixed before, but I don't recall it being here. I need to change the code to update to processing upon payment pending.

     

     

     

  4. 8 hours ago, bsmither said:

    In the gateway.class.php file of a gateway (as opposed to a plugin), there will be a call() or process() function that will instantiate the Order class:

    
    Order::getInstance()

    Later, depending on the result of verifying the transaction, there will be:

    
    $order->orderStatus(Order::ORDER_PROCESS, $cart_order_id);

    That statement tells CubeCart to move the order to the Processing status.

    It appears to be missing:

    ## Get the Order ID
            $cart_order_id    = $_POST['invoice'];
            if (!empty($cart_order_id) && !empty($data)) {
                $order                = Order::getInstance();
                $order_summary        = $order->getSummary($cart_order_id);
                $transData['notes']    = array();
                switch ($data) {
                    case 'INVALID':
                        ## If this is the response, then something is wrong with the callback
                        $transData['notes'][]    = "Unspecified Error.";
                        break;
                    case 'VERIFIED':
                        switch ($_POST['payment_status']) {
                            case 'Completed':
                                $transData['notes'][]    = "Payment successful. <br />Address: ".$_POST['address_status']."<br />Payer Status: ".$_POST['payer_status'];
                                $order->paymentStatus(Order::PAYMENT_SUCCESS, $cart_order_id);
                                $order->orderStatus(Order::ORDER_PROCESS, $cart_order_id);
                                break;
                            case 'Canceled_Reversal':
                                $transData['notes'][]    = "This means a reversal has been canceled; for example, you, the merchant, won a dispute with the customer and the funds for the transaction that was reversed have been returned to you.";
                                $order->paymentStatus(Order::PAYMENT_CANCEL, $cart_order_id);
                                $order->orderStatus(Order::ORDER_CANCELLED, $cart_order_id);
                                break;
                            case 'Denied':
                                $transData['notes'][]    = "You, the merchant, denied the payment. This will only happen if the payment was previously pending due to one of the following pending reasons.";
                                $order->paymentStatus(Order::PAYMENT_DECLINE, $cart_order_id);
                                $order->orderStatus(Order::ORDER_CANCELLED, $cart_order_id);
                                break;
                            case 'Failed':
                                $transData['notes'][]    = "The payment has failed. This will only happen if the payment was attempted from your customer's bank account.";
                                $order->paymentStatus(Order::PAYMENT_DECLINE, $cart_order_id);
                                $order->orderStatus(Order::ORDER_DECLINED, $cart_order_id);
                                break;
                            case 'Pending':
                                $transData['notes'][]    = "The payment is pending; see the pending_reason variable for more information. Please note, you will receive another Instant Payment Notification when the status of the payment changes to 'Completed', 'Failed', or 'Denied'.";
                                $order->paymentStatus(Order::PAYMENT_PENDING, $cart_order_id);
                                $order->orderStatus(Order::ORDER_PENDING, $cart_order_id);
                                break;
                            case 'Refunded':
                                $transData['notes'][]    = "You, the merchant, refunded the payment.";
                                
                                if(isset($_POST['payment_gross']) && !empty($_POST['payment_gross'])) { // Support for legacy PayPal code for USD
                                    $_POST['mc_gross'] = $_POST['payment_gross'];
                                }
                                
                                if((string)$_POST['mc_gross']==(string)'-'.$order_summary['total']) { // Change status to refunded if it is a full refund
                                    $order->paymentStatus(Order::PAYMENT_CANCEL, $cart_order_id);
                                    $order->orderStatus(Order::ORDER_CANCELLED, $cart_order_id);
                                }
                                break;
                            case 'Reversed':
                                $transData['notes'][]    = "This means that a payment was reversed due to a chargeback or other type of reversal. The funds have been debited from your account balance and returned to the customer. The reason for the reversal is given by the reason_code variable.";
                                $order->paymentStatus(Order::PAYMENT_CANCEL, $cart_order_id);
                                $order->orderStatus(Order::ORDER_CANCELLED, $cart_order_id);
                                break;
                            default:
                                $transData['notes'][]    = "Unspecified Error.";
                                $order->paymentStatus(Order::PAYMENT_DECLINE, $cart_order_id);
                                $order->orderStatus(Order::ORDER_DECLINED, $cart_order_id);
                                break;
                        }
                        break;
                }

  5. 52 minutes ago, keat said:

    Zaromnia

    In public_html, change the admin.whateveritis.php to what you want it to be.

    Then using ftp open up includes/global.inc.php and change the corresponding line for $glob['adminFile'] = 'your-new-filename.php';

    No need to change the admin folder name.

     

    As for the GitHub post, suggested by Al, i'd suggest that you could possibly leave this alone for now.

    I'd imagine that this will be written in to the next update, so might not be an issue moving forward.

    My names are not the same in any of those locations.

    publichtml has:

    admin

    admin_XXXXX

    and the globalinc file has:

    admin file YYYYY

    admin folder ZZZZZ

     

    my admin uses the YYYYY now.

     

    Also, in the includes file I have the image below

    Includes.JPG

  6. On 2/10/2017 at 3:52 AM, havenswift-hosting said:

    Doing what you are asking to do wouldn't solve that issue.  The way to prevent 404 and loss of SEO link juice is to create 301 redirect directives from the old URL to the new URL - this is done within your .htaccess file

    Ian

    Can you explain this further for me? When I did some reorganization on the website, moving products from one category to a new category(it was too cluttered), I sent the request to google crawl and now they email me about a huge increase in 404 errors. I had already rebuilt and submitted the sitemap, as well as reset the seo links.

  7. What do you need from me to help with this?

    5 hours ago, Al Brookbanks said:

    I think you are in the minority here. I've opened a report to investigate this.

    https://github.com/cubecart/v6/issues/1503

    You are using the auto upgrade tool in the admin ACP?

    I think I have always used the auto update tool from maintenance. The second update after this was implemented broke the store and didn't update the link files correctly, so I had to manually fix them. This last update was auto done through maintenance. 

  8. 48 minutes ago, havenswift-hosting said:

    @Christopher Short can you tell us why you need these seo urls to be immediately generated ?  Unless you have a reason that the rest of us are unaware of, we are struggling to understand why you would need this ?

    Ian

    I am getting 404 errors in google. I had to move a bunch of products into new categories as customers were complaining about the category organizing. 

  9. 57 minutes ago, bsmither said:

    Depends where you delete an seo_path.

    From what I see in the code, if editing a product and you blank the Custom SEO Path, CubeCart rebuilds a default path immediately.

    If you are in Maintenance, and you bulk delete all custom or default seo_paths, then CubeCart should rebuild default paths at the time CubeCart wants to populate storefront pages with products. (Also applies to categories and documents.)

    However, I also see in the code that if rebuilding a sitemap is atempted immediately after clearing the seo_path database table, the links will simply have the product name. Which is probably what the default seo_path would be generated as anyway.

    Is there a way to force the population of the links without manually opening each page?

  10. Thanks guys. I rebuilt everything, and told Google to revisit the site, from the developer tab. On a side note, is there documentation somewhere that shows what each of these items do as well as how the settings affect the store?

     

     

  11. If I select both of these, will it clear them and then regenerate them automatically?

     

    Search Engine Optimized (SEO) URLs

    Clear all custom defined SEO URL's
    Clear all auto generated SEO URL's
  12. 7 hours ago, bsmither said:

    This is from the Order Summary screen, Overview tab?

    Does the Inventory tab match? (I think it shouldn't.)

    Before this sale, how many of 1491 was in stock? How many now?

    Yes, overview tab. The inventory tab matches and this was the last item available.

  13. I just changed to PayPal pro. I have updated the ipn to the new address, and the site is receiving them. How do I get the site to go back to changing pending to processing once the ipn arrives? I am having paypal run and authorization on the cards now instead of immediate capture since I was having to do refunds on every order for excess shipping. How do I fix this? I want to see processing so I know they completed the process before I did out the order and without having to log into PayPal every time.

  14. On 12/21/2016 at 0:22 AM, JackP said:

    Regarding the IPN, I wouldn't worry about it.  It is mainly used if you want to process refunds through your website rather than through Paypal.  I have my IPN but I still process the refunds through the Paypal website.

     

    IPN allows the site to know that payment has been received, and can be configured in the store settings to change order status from pending to processing automatically, allowing the admin to know payment is there without logging into paypal to check..

×
×
  • Create New...