Forum Replies Created

Viewing 15 replies - 391 through 405 (of 574 total)
  • Forum: Fixing WordPress
    In reply to: Automatic Updates
    Thread Starter Bloke

    (@bloke)

    I thought the automatic update feature started with 3.7

    Forum: Fixing WordPress
    In reply to: Automatic Updates
    Thread Starter Bloke

    (@bloke)

    But my Sites that are on 3.7 have not done any updates but my site at 3.8 went to 3.8.1

    Thread Starter Bloke

    (@bloke)

    After researching this more, I looked at the code and it shows this on the first page:
    <meta name=”robots” content=”noodp,noydir”/>

    And on the subsequent pages it has:
    <meta name=”robots” content=”noindex,follow,noodp,noydir”/>

    Also it lists the previous and next links. So as I understand it, the search engine will not index page 2, page 3 and so on. So it doesn’t matter the property=”og:description” content is identical on these pages. Is this correct?

    Thread Starter Bloke

    (@bloke)

    I was able to not show the description on the rest of the pages. Changed this line of the wpsc-products_page.php
    if(wpsc_show_category_description() && wpsc_category_description()) :

    to this:
    if(wpsc_show_category_description() && wpsc_category_description() && wpsc_a_page_url() == '' ) :

    But it still shows on the source of the page. So I guess I will need to ask in the Yoast SEO plugin forum

    Thread Starter Bloke

    (@bloke)

    The folks at Wp-Ecommerce are saying it should work without a plugin. I don’t see how since all it does is assign a menu_order number. Then if that product appears lets say as number 10 in order it will appear number 10 in the other category.

    Thread Starter Bloke

    (@bloke)

    I always thought it was working because most of my products are unique to each category. But as I have about 900 products I have gone back to organize some in one category and noticed they don’t retain their order. You may assume its working say you have product #5 and it happens to be product #5 in the order also in another category. Then it would appear its sorting correctly but it is not. It is saving it to a field called menu_order so it will assign just one value here. Says its 5. But this will be wrong if it appears in another category also. I won’t want it to appear in position 5. So the order will be wrong. I tried moving a product and then going into the database to check the menu_order. Maybe since other products have a menu_order of 0 is the cause.

    Thread Starter Bloke

    (@bloke)

    I thought this was the official support forum for wp-ecommerce. This is where the website says to post for help.

    Look for a file name .maintenance and delete it.

    Thread Starter Bloke

    (@bloke)

    To got it figured out. There is a setting on Theme My Login I changed and now users can choose their own password.

    Thread Starter Bloke

    (@bloke)

    I got it figured out and here is how I did it in case anyone needs it because I cannot a free plug in that allows you to add the notes. Its helpful to add the order log notes to emails because when you resend the receipt to the customer it informs them of any changes.

    In my theme’s functions file. I added.

    function wpsc_get_notes($purchase_id ) {//$purchase_id
    
    $purchase_log_notes  = $wpdb->get_var( $wpdb->prepare( 'SELECT notes FROM ' . WPSC_TABLE_PURCHASE_LOGS . " WHERE id = %d", $purchase_id ) );
    return $purchase_log_notes;

    And then I created a class that I adapted from what I found here https://gist.github.com/webaware/4964078.

    class WpscExtendCustEmailNotes {
    /**
    * add filter hooks
    */
    public function __construct() {
    add_filter('wpsc_purchase_log_customer_notification_raw_message', array($this, 'customerMessage'), 10, 2);
    }
    
    /**
    * intercept filter hook for customer notification message
    */
    public function customerMessage($msg, $log_notification) {
    
    global $purid;
    $order_notes = wpsc_get_notes($purid);
    $msg .= "\n\n" .str_repeat('=', 85) . "\n";
    $msg .= "\n\n<strong>Order notes:</strong>";
    $msg .= "\n\n$order_notes\n";
    return $msg;
    }
    }
    
    new WpscExtendCustEmailNotes();

    Thread Starter Bloke

    (@bloke)

    I got it figured out and here is how I did it in case anyone needs it because I cannot a free plug in that allows you to add the notes. Its helpful to add the order log notes to emails because when you resend the receipt to the customer it informs them of any changes.

    In my theme’s functions file. I added.

    function wpsc_get_notes($purchase_id ) {//$purchase_id
    
    $purchase_log_notes  = $wpdb->get_var( $wpdb->prepare( 'SELECT notes FROM ' . WPSC_TABLE_PURCHASE_LOGS . " WHERE id = %d", $purchase_id ) );
    return $purchase_log_notes;

    And then I created a class that I adapted from what I found here https://gist.github.com/webaware/4964078.

    class WpscExtendCustEmailNotes {
    /**
    * add filter hooks
    */
    public function __construct() {
    add_filter('wpsc_purchase_log_customer_notification_raw_message', array($this, 'customerMessage'), 10, 2);
    }
    
    /**
    * intercept filter hook for customer notification message
    */
    public function customerMessage($msg, $log_notification) {
    
    global $purid;
    $order_notes = wpsc_get_notes($purid);
    $msg .= "\n\n" .str_repeat('=', 85) . "\n";
    $msg .= "\n\n<strong>Order notes:</strong>";
    $msg .= "\n\n$order_notes\n";
    return $msg;
    }
    }
    
    new WpscExtendCustEmailNotes();

    Thread Starter Bloke

    (@bloke)

    I found the solution. I created a new class to extend the customer email. Using filter “wpsc_purchase_log_customer_notification_raw_message”. I adapted what I found here https://gist.github.com/webaware/4964078 and was able to get the sales log notes and attach them to the emails.

    Thread Starter Bloke

    (@bloke)

    I found this and its close to what I am trying to do. He gives a list of item array keys at the bottom and I assume I could retrieve the notes.

    Scroll to the second to last block of code Get purchase log data

    Thread Starter Bloke

    (@bloke)

    I found this and its close to what I am trying to do. He gives a list of item array keys at the bottom and I assume I could retrieve the notes.

    Scroll to the second to last block of code. Just not sure if I would put this in my theme’s functions file.Get purchase log data

    Or the example from whitelamps’ plugin

    function purchase_log_add_up_included_tax($pln)
    {
        $pl = $pln->get_purchase_log();
        $gwdata = $pl->get_gateway_data();
        $tax_included = 0;
        foreach ($gwdata['items'] as $item) {
            if (isset($item['tax'])) {
                $tax_included += $item['tax'];
            }
        }
        return wpsc_currency_display( $tax_included, array( 'display_as_html' => false ) );
    }

    I was thinking something something like this:

    function get_notes()
    {
    
        $data = $wpdb->get_var( $wpdb->prepare( 'SELECT notes FROM ' . WPSC_TABLE_PURCHASE_LOGS . " WHERE id = %d", $purchase_id ) )
    
        foreach ($data['item'] as $notes) {
            if (isset($item['notes'])) {
                $tax_included += $item['tax'];
            }
        }
    
    }

    Thread Starter Bloke

    (@bloke)

    It would be better if it would not show “Select one” as an option because when you select the dropdown is shows …Rhode Island, Select one, South Carolina, South Dakota and so on…

Viewing 15 replies - 391 through 405 (of 574 total)