Commit Graph

456 Commits

Author SHA1 Message Date
Mike Jolley e143d344e5 Constants 2013-10-24 19:36:22 +01:00
Mike Jolley 08bfd6b4d7 woocommerce_before_single_variation and after. Removed un-needed div. Closes #3906 2013-10-16 10:41:23 +01:00
Mike Jolley ef49977905 add_to_cart_url add_to_cart_text and single_add_to_cart_text class methods allowing greater control with custom classes.
Closes #3484 and Closes #3143. Pinging @thenbrent as the handler was
originally his idea and I've killed it.

@helgatheviking In 2.1, add to cart URLs will only be used in loops, so
conditonal logic should no longer be neccessary. Single templates post
to themselves without the need for the URL.
2013-09-25 12:35:06 +01:00
Mike Jolley e58b101fd5 If no variations exist, show out of stock notice. Closes #3763. 2013-09-25 09:36:04 +01:00
Mike Jolley 9a98be6a15 WOOCOMMERCE_DELIMITER constant. Closes #3476. 2013-09-24 12:24:26 +01:00
Mike Jolley 06ef44c9df Pass args to variation forms from cart page. Closes #3568 2013-09-23 15:47:47 +01:00
Mike Jolley 355dd16962 Removed @coenjacobs helpers and cleaned up main clas 2013-09-12 14:41:02 +01:00
Mike Jolley bfc2b52d10 Ensure product image has title 2013-09-04 14:17:17 +01:00
Mike Jolley 3d078397b3 Merge branch 'Re-organise-settings'
Moves settings together. Fixes #3497
2013-08-22 11:58:03 +01:00
James Koster 719acf5104 review gravatar size filterable & added alt text 2013-08-05 13:54:27 +01:00
Mike Jolley 9f1c14c682 Tidied comment styling and only show stars if set Closes #2906. 2013-07-31 09:44:28 +01:00
Mike Jolley 45ec540236 fix notice with sku 2013-07-30 11:39:25 +01:00
Mike Jolley 15f98496f1 Ensure sku placeholder exists for variable products Closes #1734. 2013-07-30 11:12:47 +01:00
Mike Jolley 8c57fce84d Fix rich snippets for sale prices. Closes #3470. 2013-07-19 15:28:47 +01:00
Mike Jolley 08ef109e28 Related were limited to 5. Closes #3462 2013-07-19 14:50:52 +01:00
Mike Jolley b38ef8efcd No add to cart redirect, and use POST for add-to-cart Closes #3200 2013-06-14 12:48:41 +01:00
Coen Jacobs a09ebc9cca Merge branch 'helpers-refactor' into core-class-refactor
Conflicts:
	classes/class-wc-shortcodes.php
	classes/shortcodes/class-wc-shortcode-change-password.php
	classes/shortcodes/class-wc-shortcode-view-order.php
	templates/myaccount/form-change-password.php
	templates/myaccount/form-login.php
	templates/order/order-details.php
	woocommerce-functions.php
2013-06-06 13:55:36 +02:00
Mike Jolley cea7037b56 Canonicalize Cross-Sells invokation Closes #2913 2013-06-05 17:29:10 +01:00
Coen Jacobs 74fcf1a1d4 Abstracted attribute helper to class #3282 2013-06-05 16:14:25 +02:00
Mike Jolley a0a0c93fb4 Merge pull request #3037 from scarydakis/master
Fix incorrect CSS class being output in product image gallery
2013-04-29 01:50:48 -07:00
Stephan 769fada460 Update product-image.php
Fix to correctly calculate $attachment_count
2013-04-27 00:42:41 +10:00
Mike Jolley 77aa394093 Prevent empty meta queries by filtering. Closes #2978. 2013-04-17 16:29:43 +01:00
Mike Jolley 003dab8525 Better workaround for #2975 2013-04-16 15:39:07 +01:00
Mike Jolley 6a96cc5d4c Less fugly conditonal. 2013-04-16 14:47:16 +01:00
Mike Jolley c211603fc9 Fix saving options for attribute taxonomies containing special chars. Closes #2975. 2013-04-16 14:41:23 +01:00
Mike Jolley f930ab27b6 More validation fixes. #2903. 2013-04-08 19:35:10 +01:00
Daniel Espinoza eb6dfe9ad4 Changes to template files that were causing validation errors. 2013-04-05 21:56:36 -05:00
James Koster 3d3df8f70d message icon in FF & prettyPhoto nav when only one product image fix 2013-03-12 11:05:18 +00:00
Mike Jolley bc4cc8bf7e Codestyling bug with meta.php 2013-03-11 18:08:55 +00:00
Mike Jolley eb11384fa9 Merge pull request #2647 from leewillis77/msrp_hooks
Add additional hook to grouped product add-to-cart template
2013-03-10 06:10:44 -07:00
Mike Jolley 600f8728a0 Tweaked filter names + structure. #2659 2013-03-10 13:07:36 +00:00
Roy Ho 983f455a6d Added filters on the product image HTML and product thumbnails for 3rd party customizations 2013-03-09 13:34:52 -08:00
Lee Willis 7a8f87428c Add additional hook to grouped product add-to-cart template 2013-03-08 18:26:01 +00:00
Mike Jolley 5393fc7ddb Santize custom attributes. #2587 2013-03-07 19:34:29 +00:00
Mike Jolley 089178e0e8 escape when output, not when saved. #2587 2013-03-05 21:20:00 +00:00
Brent Shepherd b0d538636a Restore single_add_to_cart_button class 2013-03-05 14:26:59 +10:00
Brent Shepherd 3935034bc0 Fix grouped products sold individually add-to-cart
The add-to-cart button for products sold individually on a grouped
product page would always lead to the "Please choose a product to
add to your cart" error. This fixes that, and also restores th
'single_add_to_cart_text' filter to the button's text.
2013-03-05 14:22:54 +10:00
Pascal Borreli ae7899c67b Fixed typos 2013-03-03 17:07:31 +00:00
Mike Jolley 858465b991 Fix lightbox Closes #2451. 2013-02-14 17:12:21 +00:00
Mike Jolley b67492fe68 Hide thumbnails when empty. Closes #2409. 2013-02-11 14:17:57 +00:00
Mike Jolley b1b1afbaeb Move tabs file 2013-02-10 18:49:22 +00:00
Mike Jolley 3e5b4141f6 Refined the way in which tabs are added to products 2013-02-10 17:33:13 +00:00
Mike Jolley c903e47089 Improve variation form pattern and data 2013-02-07 10:12:08 +00:00
James Koster ac70b46867 more prettyPhoto 2013-01-31 14:15:55 +00:00
James Koster 6ae394bec0 replace the rels, minify css 2013-01-30 23:56:41 +00:00
James Koster cf00520b4c step 1 of replacing Fancybox with prettyPhoto 2013-01-30 16:18:36 +00:00
Mike Jolley 31be242a6b Fix ordering. Closes #2229. 2013-01-15 12:10:03 +00:00
Mike Jolley 192a8c5421 star ratings without images. 2013-01-14 10:51:06 +00:00
Mike Jolley 1766f07c19 Meta_queries Closes #2182. 2013-01-10 16:02:04 +00:00
Geert De Deckere 319c81b403 Made title attribute for product quantity inputs translatable 2013-01-03 14:18:30 +01:00
James Koster 5302eb019f css class name consistency #2086 2013-01-03 11:40:10 +00:00
James Koster 1622b7b2b7 consistent title on rating 2013-01-02 12:06:15 +00:00
Dalton Rooney 0b466952ca Related should not include current product 2012-12-27 10:27:20 -05:00
Dalton Rooney 1c01ad3f1c Upsells should not include the current product 2012-12-27 10:26:31 -05:00
Mike Jolley e7e12714c1 Tweak style and function names for image handling. 2012-12-20 10:53:34 +00:00
Mike Jolley c8852bcf40 Revised, roduct gallery panel, images stored in meta = more flexibility. 2012-12-20 01:13:06 +00:00
James Koster e1970c497b consistent titles on star ratings 2012-12-17 14:48:19 +00:00
Mike Jolley 681a2a8ba5 Groups product titles. Closes #1966. 2012-12-11 17:28:47 +00:00
James Koster 8044d8c2af verified owner class 2012-12-10 11:48:50 +00:00
Mike Jolley ab40f7a01f Include currency code in schema. Closes #1896. 2012-12-05 13:44:02 +00:00
Coen Jacobs 37feabd87f WooCommerce 2.0 is coming! 2012-12-03 20:19:58 +01:00
Mike Jolley 3c66ddae42 Class tweaks, need more testing. Closes #1874. 2012-11-29 16:48:40 +00:00
Mike Jolley b1ec4b289a Nuked whitespace. Closes #1846. 2012-11-27 16:22:47 +00:00
jorijnsmit 02261e975c Update templates/single-product/review.php
Replaced hard coded date format with get_option('date_format') so that date format from admin panel is used instead.

(woohoo, my first Github contribution :-))
2012-11-19 21:43:11 +01:00
Mike Jolley 4720628a71 Hooks galore for integers vs floats. Closes #1113. 2012-11-19 14:05:06 +00:00
Mike Jolley 2d0909d28b Update weights/dimensions for variations if they differ. Closes #1629. 2012-11-16 13:50:15 +00:00
Mike Jolley 0d38e61e2d Sanitize fixes. Closes #1614. 2012-10-17 12:05:54 +01:00
Coen Jacobs 80fc5fc086 [3.2.3] Templates XSS #1575 2012-10-16 17:35:16 +02:00
Mike Jolley 8c3ad31c07 Localisation spacing. 2012-10-16 10:45:33 +01:00
Mike Jolley 01e8bd6f08 Merge pull request #1604 from superjinya/patch-1
Update templates/single-product/add-to-cart/variable.php
2012-10-15 12:44:10 -07:00
Coen Jacobs 943091d2ca [3.1.4] Prevent direct access to files #1575 2012-10-15 12:57:58 +02:00
superjinya 9554d3f253 Update templates/single-product/add-to-cart/variable.php
Variation options fixed as issues provided by ksemel. Woo Jin Koh
2012-10-15 11:01:42 +09:00
Mike Jolley ee0ff453d0 singular/plural Closes #1479. 2012-10-12 19:48:49 +01:00
Mike Jolley 39b7567b0c product_variations[] Closes #1581. 2012-10-12 14:21:21 +01:00
Mike Jolley 5868b63b93 Ordering options. Closes #1166. 2012-10-09 15:57:06 +01:00
Mike Jolley 79324412d4 sku tweak. Closes #1479. 2012-10-08 13:54:31 +01:00
Mike Jolley 2a30cfda0e loop start and end. Closes #1356. 2012-09-30 14:41:07 +01:00
Mike Jolley e61c152a7c disable ratings option. Closes #1503. 2012-09-21 21:21:50 +01:00
Mike Jolley f6d0bd2c06 Upsells
* Tweak - Removed upsell limit - show whats defined.
* Tweak - Args for upsells to control per-page and cols.
2012-09-21 16:47:57 +01:00
Andrew Benbow 160c3bd897 Update templates/single-product/tabs/tab-description.php
Added apply_filters to the tab title
2012-08-31 14:08:06 +02:00
Andrew Benbow ea4ffae2d6 Update templates/single-product/tabs/tab-description.php
Reverted
2012-08-31 14:07:33 +02:00
Andrew Benbow 005648f4bb Update templates/single-product/tabs/tab-reviews.php
Added apply_filters to tab title
2012-08-31 14:05:43 +02:00
Andrew Benbow 5e13086cef Update templates/single-product/tabs/tab-description.php
Added apply filters to tab title
2012-08-31 14:05:03 +02:00
Andrew Benbow d4f7427d06 Update templates/single-product/tabs/tab-attributes.php 2012-08-31 14:04:04 +02:00
Mike Jolley 2daa93912c hooks for meta 2012-08-29 14:08:19 +01:00
Mike Jolley 431316dfd3 small variable naming tweak 2012-08-25 16:00:40 +01:00
Mike Jolley 40cc7b997d Scope. Closes #1364. 2012-08-21 16:41:18 +01:00
Mike Jolley ef7ec98f2e templates 2012-08-14 23:43:54 +01:00
kathy f2415b3761 switch get_price() checks to is_purchasable() for displaying Add to Cart button 2012-08-06 19:27:24 -05:00
Mike Jolley cedcca7fe7 is_purchasable. Closes #1331. 2012-08-07 00:33:52 +01:00
Mike Jolley a322a83a7d analytics tracking 2012-07-30 16:01:33 +01:00
Mike Jolley 1f071fd8f4 selected state for variation options 2012-07-22 14:31:31 +01:00
Mike Jolley 5ba8d025e6 newline 2012-07-20 13:57:18 +01:00
Mike Jolley 6e41377af1 wp_reset_postdata instead of wp_reset_query in product page loops. #1277. 2012-07-20 13:50:32 +01:00
Mike Jolley 880e8b6b0f Don't show price when variation prices don't differ. Closes #1199. 2012-07-11 23:19:33 +01:00
Mike Jolley 4200f43d52 woocommerce_attribute filter. Closes #768. 2012-07-11 19:11:41 +01:00
Mike Jolley 2b9a03db2c "verified owner" label for customer reviews. Closes #294. 2012-07-11 18:48:22 +01:00
Mike Jolley fac3756e65 killed query posts 2012-07-11 15:13:11 +01:00
Mike Jolley 54c00bd642 Changed microdata for offers/product so its picked up by google. Closes #1227. 2012-07-10 17:32:56 +01:00
Mike Jolley 746a794f0a Check taxonomies exist. Closes #1207. 2012-07-10 14:05:44 +01:00
Mike Jolley d85de187f9 Variable product hooks. Closes #1201. 2012-06-29 19:52:06 +01:00
Mike Jolley f9f1bb9ddd Ordering tweaks/improvements and variation prices. Closes #1097. 2012-06-10 18:15:02 +01:00
Mike Jolley 06398f4a5b Variations maintain selections after adding to cart. Closes #926. 2012-06-10 13:53:26 +01:00
Mike Jolley db84f5b429 refactor variation add to cart. Closes #1134. 2012-06-10 10:15:23 +01:00
Mike Jolley d80dce7a4e line endings 2012-06-10 09:20:28 +01:00
Ryan C Meinzer 222e94cf07 added is_sold_individually to qty check
With the is_sold_individually the other way of checking was deprecated.
Using this method to check allows for the use of the
'woocommerce_is_sold_individually' filter.
2012-06-08 15:40:23 -05:00
Mike Jolley 19be69d1d8 Line endings. Closes #1065. 2012-05-26 17:25:07 +01:00
Mike Jolley 9096675037 fix conflicts with pagelines 2012-05-13 21:51:10 +01:00
Mike Jolley b38f043fa9 use is_sold_individually in grouped template 2012-05-11 10:31:34 +01:00
Mike Jolley e5f93e448b focusin for IE Closes #866. 2012-05-08 16:41:16 +01:00
James Koster c8ff0c22d5 added classes to product tabs 2012-05-01 21:26:58 +01:00
Mike Jolley 62c1d9d15c ShareYourCart + integration tweaks 2012-04-30 20:50:52 +01:00
Mike Jolley 7840c79251 style rework. Shareyourcart (needs more work) 2012-04-28 18:28:18 +01:00
Mike Jolley 46653cf957 reset image. Closes #935. 2012-04-16 18:34:58 +01:00
Mike Jolley 7aa97b0f38 product attributes template 2012-04-13 18:33:56 +01:00
Mike Jolley aba42b5fc0 Small template cleanup 2012-04-12 17:22:56 +01:00
Coen Jacobs 57570b62c1 Last commit was a bit rude. Also hide panels containing the data. Closes #892 2012-04-05 10:46:39 +02:00
Coen Jacobs 2fa6a9313d Check if weight and dimension fields should be shown before checking values. Closes #892 2012-04-05 10:34:11 +02:00
Mike Jolley 4182a35ed5 Hide tabs if we have none 2012-04-03 10:34:02 +01:00
Mike Jolley c21b70e483 Hooks for short description - avoid the_content 2012-04-03 09:55:41 +01:00
Mike Jolley c28b28e712 grouped external products 2012-03-30 16:10:14 +01:00
Mike Jolley 3d35e1eea4 Visual editor for except (thanks Andrew Benbow - http://www.chromeorange.co.uk/) 2012-03-26 16:12:16 +01:00
Mike Jolley 115229aeee no_found_rows Closes #804. 2012-03-14 11:41:32 +00:00
James Koster c6149e2756 single product title template / hook 2012-03-13 12:52:53 +00:00
Mike Jolley a2714544a4 cart limit item. Closes #646. 2012-02-27 18:22:54 +00:00
Mike Jolley d5c54d686a Reset variations. Closes #705. 2012-02-27 13:14:33 +00:00
Mike Jolley 8560542fa4 simplified external button code 2012-02-26 11:47:49 +00:00
Mike Jolley 0ca05faf52 localised date 2012-02-24 17:28:13 +00:00
Mike Jolley fdb1359d19 Function for getting placeholder.png - woocommerce_placeholder_img_src() with filter woocommerce_placeholder_img_src 2012-02-24 16:23:08 +00:00
Mike Jolley f0d4d8cb63 Product option for customise the button text for external products 2012-02-24 16:05:17 +00:00
Mike Jolley 00aec064c5 Hooks for add to cart text (single) 2012-02-21 13:40:05 +00:00
Mike Jolley 1a06f85b6d data-min 2012-02-17 23:47:18 +00:00
Mike Jolley 4a638b962c SKU tweakage 2012-02-13 00:34:09 +00:00
Mike Jolley a3eabe1c0f Fixed missing product id 2012-02-06 18:14:46 +00:00
Mike Jolley 97e89891c2 ShareDaddy. Closes #426. 2012-02-06 17:28:27 +00:00
Mike Jolley 0f736bc6e9 Fixed sharethis code 2012-02-06 13:05:50 +00:00
Mike Jolley 3b5272e72e Improved template loader 2012-02-03 16:42:21 +00:00
Mike Jolley 35fadb00fe More consistent template file naming, broken checkout into templates 2012-01-29 13:36:33 +00:00
Mike Jolley 34b7f8f8b6 Product page short code
Little experiment which worked well.
2012-01-26 11:23:42 +00:00
Mike Jolley 7675fd7ab1 Removed need to mandatory exclude meta 2012-01-18 17:32:24 +00:00
Mike Jolley ce6f77d4e0 data-max for quantity inputs 2012-01-14 17:59:47 +00:00
Mike Jolley 2b09e9160c Show tab if weight/dimensions are set and being shown. Closes #467. 2012-01-10 15:36:14 +00:00
Mike Jolley f74e041a30 Renamed textdomain Closes #444. 2012-01-05 11:31:22 +00:00
Mike Jolley 364c0bd54c Renamed all product data meta keys
This is so they are hidden (_). Should have done this long ago. Few
extensions will need updating when 1.4 goes out to reflect these
changes, mainly importers.
2011-12-24 16:57:36 +00:00
Mike Jolley edb03258c6 Thumbnail total 2011-12-21 00:44:26 +00:00
Mike Jolley b8eeda72bd Show variable sku. Closes #350. 2011-12-19 19:10:59 +00:00
Mike Jolley 0205d5843b If all grouped products are downloadable, use buttons instead of quantities. Closes #354. 2011-12-19 18:42:21 +00:00
Mike Jolley 0dc662a16e Templates 2011-12-12 12:28:07 +00:00
Mike Jolley 3cfe43a80e Templates 2011-12-12 11:35:54 +00:00
Mike Jolley f211aac406 More templates 2011-12-11 23:16:34 +00:00
Mike Jolley 35d1d56329 Made product global, setup automatically, and removed the need to call the class directly in the loop
Themes need checking for compat, but the change makes it easier to use
2011-12-11 14:40:25 +00:00
Mike Jolley ae1419c8b2 Quantity fix 2011-12-11 12:39:35 +00:00
Mike Jolley d4452dcb18 Template files 2011-12-11 01:08:33 +00:00
Mike Jolley 2f1eb1e975 Tabs 2011-12-09 22:44:03 +00:00
Mike Jolley d6d886f46d More templates 2011-12-09 20:16:34 +00:00
Mike Jolley 033735bf8f New structure + started moving template code to files 2011-12-09 19:55:09 +00:00