Skip to content
Permalink
Browse files

Fix: POS visibility options not showing on new product page

  • Loading branch information...
kilbot committed Aug 24, 2015
1 parent 07d3e98 commit ef20a5bd4e9727855e9eac747f912502ae0c9cc9
@@ -16,6 +16,11 @@ var Item = ItemView.extend({
'click @ui.add' : 'addToCart'
},

// todo: why is this necessary?
modelEvents: {
'change:stock_quantity': 'render'
},

addToCart: function(e){
e.preventDefault();
Radio.request('router', 'add:to:cart', {model: this.model});
@@ -171,17 +171,11 @@ module.exports = DualModel.extend({
*
*/
getVariations: function(){

if(this._variations){
return this._variations;
}

if( this.get('type') !== 'variable' ){
return false;
if( this.get('type') !== 'variable' ){ return false; }
if( ! this._variations ){
var variations = new Variations(this.get('variations'), { parent: this });
this._variations = new FilteredCollection(variations);
}

var variations = new Variations( this.get('variations'), { parent: this } );
this._variations = new FilteredCollection(variations);
return this._variations;
}

@@ -1,3 +1,21 @@
= 0.4.1 =
* Note: WooCommerce POS now requires WooCommerce 2.3 or greater
* New: added woocommerce_pos_email_receipt hook
* Improve: blur() barcode search field after successful match
* Improve: editing a product/fee/shipping title in cart - commit [216e8a5](https://github.com/kilbot/WooCommerce-POS/commit/216e8a5)
* Improve: css tweaks for Firefox - commit [216e8a5](https://github.com/kilbot/WooCommerce-POS/commit/216e8a5)
* Improve: keyboard entry for qty and prices - commit [ee61744](https://github.com/kilbot/WooCommerce-POS/commit/ee61744)
* Improve: variation attributes now stored as line item meta for display on receipts
* Fix: support for legacy server HTTP methods - commit [5765491](https://github.com/kilbot/WooCommerce-POS/commit/5765491)
* Fix: Internal Server Error for PHP 5.2.x - commit [d800d40](https://github.com/kilbot/WooCommerce-POS/commit/d800d40)
* Fix: parse $HTTP_RAW_POST_DATA global to array - commit [ac88f50](https://github.com/kilbot/WooCommerce-POS/commit/ac88f50)
* Fix: decimal quantity display - commit [358d95f](https://github.com/kilbot/WooCommerce-POS/commit/358d95f)
* Fix: check WooCommerce has loaded - commit [80285c4](https://github.com/kilbot/WooCommerce-POS/commit/80285c4)
* Fix: variation selection issues in popover - commit [5c9673b](https://github.com/kilbot/WooCommerce-POS/commit/5c9673b)
* Fix: incorrect total tax calculation for negative fees - issue [#85](https://github.com/kilbot/WooCommerce-POS/issues/85)
* Fix: decimal bug on numpad entry, eg: 0.01 - commit [b46884d](https://github.com/kilbot/WooCommerce-POS/commit/b46884d)
* Update npm dependencies

= 0.4.0 =
* Note: this is a major code refactor, almost every line of code has been rewritten
-
@@ -10,7 +10,7 @@
class WC_POS_Status {
private $wc_min_version = '2.3';
private $wc_min_version = '2.3.7';
private $php_min_version = '5.4';
public function output() {
@@ -221,16 +221,11 @@ public function save_post( $post_id, $post ) {
* @param $hook
*/
public function admin_enqueue_scripts( $hook ) {
if ($hook != 'edit.php' && $hook != 'post.php') {
return;
}
$pages = array('edit.php', 'post.php', 'post-new.php');
$screen = get_current_screen();
if ($screen->post_type != 'product') {
if( !in_array( $hook, $pages ) || $screen->post_type != 'product' )
return;
}
if(defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG){
$script = WC_POS_PLUGIN_URL . 'assets/js/src/products.js';
@@ -2,7 +2,7 @@
Contributors: kilbot
Tags: cart, e-commerce, ecommerce, inventory, point-of-sale, pos, sales, sell, shop, shopify, store, vend, woocommerce, wordpress-ecommerce
Requires at least: 4.0 & WooCommerce 2.3
Tested up to: 4.2.2
Tested up to: 4.3
Stable tag: 0.4.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -24,7 +24,7 @@ You can see a demo of the WooCommerce POS plugin in action by going to [http://d
* Upgrade to Pro: http://woopos.com.au/pro

= REQUIREMENTS =
* WooCommerce >= 2.3.0
* WooCommerce >= 2.3.7
* [A modern browser](http://woopos.com.au/faq/browser-compatibility/)

== Installation ==
@@ -90,7 +90,8 @@ Bugs can be reported on the [WooCommerce POS GitHub repository](https://github.c
* Fix: compatibility fix for WC 2.4 SSL authentication - commit [525671b](https://github.com/kilbot/WooCommerce-POS/commit/525671b7613b20864366aebf426f14d07b37bfa4)
* Fix: modal CSS conflict in WP Admin - commit [837b918](https://github.com/kilbot/WooCommerce-POS/commit/837b918e5bae4de6c1cee1492d390ade1b2e7f45)
* Fix: numpad discount bug introduced in 0.4.1
* Fix: quick edit links not showing on WP Admin Products page - commit []()
* Fix: quick edit links not showing on WP Admin Products page - commit [07d3e98](https://github.com/kilbot/WooCommerce-POS/commit/07d3e984802b64c645f53899396bb393ea7cb7ef)
* Fix: POS visibility options not showing on new product page - commit []()
* Tweak: WP Admin CSS - commit [c5a38c7](https://github.com/kilbot/WooCommerce-POS/commit/c5a38c7f889a7788e3eaa633c28620d2e80ac2ee)

= 0.4.1 =
@@ -140,68 +141,4 @@ Bugs can be reported on the [WooCommerce POS GitHub repository](https://github.c

* Fix: all the things

= 0.3.5 =
* Note: this is a minor compatibility update for WooCommerce 2.3
* Fix WC_Gateway_Mijireh error with WC 2.3
* Fix for W3 Total Cache minify js conflict
* Fix capitalization bug with product searches

= 0.3.4 =
* Urgent Fix: performance issue downloading products
* Fix: potential clash for admin menu position
* Fix: bug affecting woocommerce_api_order_response
* Fix: cashback entry on receipt
* Improved: POS Only products

= 0.3.3 =
* Urgent Fix: Compatibility with new order-status introduced in WooCommerce > 2.2
* Fix: POS Only products improved, fixes 404 errors on imported products
* Fix: IndexedDB now available on Safari 7.1, compatibility update to db
* Fix: bug effecting default customer setting
* Fix: added support for Simplify Commerce by Mastercard
* Improved: product thumbnails, support for non-cropped thumbs
* Improved: clearing local database improved for large stores

= 0.3.2 =
* Urgent Fix: POS bug causing problems with product display on some websites, eg: featured products
* Fix: refresh button on offsite payment receipts
* Fix: managing_stock for variations

= 0.3.1 =
* [read blog post](http://woopos.com.au/2014/08/version-0-3-1-released/)
* New: choose which user roles have access to POS
* New: set products as visible to POS Only or Online Only
* New: filter products in WP-Admin by POS Only or Online Only
* New: filter orders in WP-Admin by POS or Online
* New: hierarchical UI for variable products, improves experience for products with large number of variations
* New: product filters, filter by category ( eg: cat:music ) or any attribute ( eg: in_stock:true )
* New: quick tabs for filtering products All, Featured ( featured:true ) and On Sale ( on_sale:true )
* New: number pad for quick entry via mouse or touch
* New: Payment Gateway settings, enable POS only gateways and reorder through new settings tab
* New: Payment Gateway processing (tested on some gateways but still experimental)
* New: change calculated for Cash sales
* New: cashback option for Card sales
* New: Link to POS from admin menu (sorry!)
* New: [Debug flag](http://woopos.com.au/docs/debugging/) for Javascript console logging
* New: Greek translation thanks to Marios Polycarpou! [http://el.woopos.com.au/pos](http://el.woopos.com.au/pos)
* New: German translation thanks to Simon Potye! [http://de.woopos.com.au/pos](http://de.woopos.com.au/pos)
* New: Danish translation thanks to Thomas Clausen! [http://da.woopos.com.au/pos](http://da.woopos.com.au/pos)
* Improved: Most JS has been rewritten to improve performance and extensibility
* Improved: Initial download of products, improved performance for large stores and/or slow servers
* Improved: Notes are now handled like Customer Notes for display on receipts
* Fix: Authenication no longer relies on cookies, should fix authentication issues for some users
* Fix: Bug preventing product display on Safari for subfolder installs of WordPress
* Fix: Bug effecting admin settings for translation users

* Pro Feature: Pro users can enable any Payment Gateway. [Upgrade to Pro](http://woopos.com.au/pro)

= 0.3 =
* New: Set default POS customer on new settings page
* New: Add customer to order
* New: Documentation for third party developers [http://kilbot.github.io/WooCommerce-POS/](http://kilbot.github.io/WooCommerce-POS/)
* New: pt_BR translation thanks to Hermes Alves Dias Souza! [http://pt.woopos.com.au/pos](http://pt.woopos.com.au/pos)
* New: Icons for mobile devices. Thanks [@sixthcore](https://github.com/kilbot/WooCommerce-POS/issues/11)!
* Fix: stock is now synced after each order
* Fix: Add-to-cart bug for particular tax settings (tax enabled + prices exclusive from tax + no tax rates set)
* Fix: product display for sites where home_url != site_url
* Fix: authentication test for subfolder wordpress installs
= [View full changelog](https://github.com/kilbot/WooCommerce-POS/blob/master/changelog) =

0 comments on commit ef20a5b

Please sign in to comment.
You can’t perform that action at this time.