Bloke
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Automatic UpdatesI thought the automatic update feature started with 3.7
Forum: Fixing WordPress
In reply to: Automatic UpdatesBut my Sites that are on 3.7 have not done any updates but my site at 3.8 went to 3.8.1
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?
Forum: Plugins
In reply to: [WP eCommerce] Show product category description only onceI 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
Forum: Plugins
In reply to: [Post Types Order] Order products multiple categories Wp-ecommerceThe 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.
Forum: Plugins
In reply to: [WP eCommerce] Sort products in multiple categoriesI 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.
Forum: Plugins
In reply to: [WP eCommerce] Sort products in multiple categoriesI 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.
Forum: Plugins
In reply to: [WP eCommerce] Allow user to choose passwordTo got it figured out. There is a setting on Theme My Login I changed and now users can choose their own password.
Forum: Plugins
In reply to: [WP eCommerce] Receipt to buyer does not include notesI 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();Forum: Plugins
In reply to: [WP e-Commerce Shop Styling] How to add order notes to emailI 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();Forum: Plugins
In reply to: [WP eCommerce] wpsc-transaction_results_functionsI 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.
Forum: Plugins
In reply to: [WP e-Commerce Shop Styling] How to add order notes to emailI 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
Forum: Plugins
In reply to: [WP eCommerce] Receipt to buyer does not include notesI 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']; } } }Forum: Plugins
In reply to: [WP eCommerce] Set default tax to zero on check outIt 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…