whitelamp
Forum Replies Created
-
Forum: Plugins
In reply to: [WP eCommerce] Gold Cart and Authorize.netWhat do you mean by “the sandbox”?
If you take the gateway code and add error_log() calls do they appear in the apache error log for you to view? Then you could see which bits of code are getting called.
Forum: Plugins
In reply to: [WP eCommerce] Adding a payment gateway to WP Ecommerce storeYes, it should just work.
Forum: Plugins
In reply to: [WP eCommerce] Adding a payment gateway to WP Ecommerce storehttps://wpecommerce.org/store/product/stripe-payments/ is a ready-made bit of code.
And if you *do* write your own gateway, do *not* place it in /wp-content/plugins/wp-e-commerce/wpsc-merchants as villy.skov has suggested – it is very likely to be over-written when the main plugin gets updated. You need to create it as a separate plugin.
Forum: Plugins
In reply to: [WP eCommerce] httpss instead of https on “Go to checkout” linkYou’ll find shopping_cart_url in the wp_options table in the database – that’s
where that URL comes from.Forum: Plugins
In reply to: [WP eCommerce] language “continue shopping – go to checkout”Attention developers! This turned out to be a bug. wpsc-components/fancy-notifications/fancy-notifications.php is still using the “old” ‘wpsc’ translation files but of course translations are now held in wp-e-commerce. Not knowing how many other places would need fixing, I decided it was quickest and easiest just to make a copy of the current translation file under the new name and make sure that both get loaded. Hopefully this can be fixed in the next iteration. I do not imagine it would be too hard to grep the source for any other occurrences.
Forum: Plugins
In reply to: [WP eCommerce] language “continue shopping – go to checkout”In wp-e-commerce-it_IT.po I see
msgid "Go to Checkout" msgstr "Andate alla cassa"
Did you make the change in fancy-notifications.php line 71? And hard refresh / clear caches?
Forum: Plugins
In reply to: [WP eCommerce] Change Shop NameSite Title is in Settings -> General – is that what you meant?
Forum: Plugins
In reply to: [WP eCommerce] language “continue shopping – go to checkout”If you look in wpsc-components/fancy-notifications/fancy-notifications.php line 71 you see
esc_html__( 'Go to Checkout', 'wpsc' ) );
which should probably be
esc_html__( 'Go to Checkout', 'wp-e-commerce' ) );
Forum: Plugins
In reply to: [WP eCommerce] Layout: Align product list leftTry changing the code here then:
wpsc-components/theme-engine-v1/templates/wpsc-products_page.php
Make sure to turn any caching off.Forum: Plugins
In reply to: [WP eCommerce] Layout: Align product list leftIf your theme folder contains its own wpsc-products_page.php it will override the one in the wpsc-theme folder.
Making the product image linked the same as the title will again be a change to a theme file – same one I think.
Don’t know about product order, don’t recall anybody ever asking me to do it.
Forum: Plugins
In reply to: [WP eCommerce] Fancy purchase notification positionOkay, this site is still on 3.11.3. In 3.11.7 the equivalent place would be line 1150. If it is still necessary at all – the code does look quite different. (Afraid I’m not going to sit here analysing it!).
What we found that the first time the “added to cart” box popped up, it’s position was based on its original width – i.e. only containing the spinner. Then when there was some actual “you have added” style content to display, it was too far to the right.
Forum: Plugins
In reply to: [WP eCommerce] Layout: Align product list leftIn the source code for the page I see this:
<div class="productcol" style="margin-left:168px;" >
so you will probably find it in your theme somewhere.
Your button colour is set in forms.css:
background-color: #636363;
change it there if you want all buttons to change colour or add an override in your main CSS file:
.wpsc_buy_button {
background-color: #6363ff;
}
For your last question – you want to enable “fancy notifications”.Forum: Plugins
In reply to: [WP eCommerce] Update Causes Error –Hi, you will find an explanation of the error here:
https://stackoverflow.com/questions/1075534/cant-use-method-return-value-in-write-context
If you can’t update to PHP 5.5+ you will have to fix the code by hand.This will probably work:
public function get_total_refunded() {
$tor = $this->get( ‘total_order_refunded’ );
return empty( $tor ) ? ‘0.00’ : $this->get( ‘total_order_refunded’ );
}- This reply was modified 8 years, 1 month ago by whitelamp.
Forum: Plugins
In reply to: [WP eCommerce] What is the correct directory for payment gateways?As you have noticed, the merchants directory is liable to get wiped clean during an upgrade.
I have written a number of gateways (but not for the last year or so).
You need to create a new plugin. It needs to contain this:
add_filter('wpsc_merchants_modules','xbank_gateway_add_gateway'); function xbank_gateway_add_gateway ($nzshpcrt_gateways) { $nzshpcrt_gateways[] = array( 'name' => 'XBank Gateway', // ---- etc
The rest of it is much the same as it used to be. I have not seen any up to date documentation on this.
Forum: Plugins
In reply to: [WP eCommerce] Change “Add To Cart” textIf you have a copy of wpsc-products_page.php in your theme’s folder then it is used in preference to wp-e-commerce’s own.