ManusH
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] I want to allow html tags on customer note in view-order pageYou can find such code snippets / tutorials on allowing more tags with in a specific area or site-wide usage by adding some hooks to your theme’s functions.php .
/* You can add other HTML tags (and attributes) to your allowed html tags list function my_allowed_html_tags() { define('CUSTOM_TAGS', true); global $allowedtags; $allowedtags = array( 'a' => array( 'href' => array (), 'title' => array ()), 'blockquote' => array( 'cite' => array ()), 'cite' => array (), 'code' => array(), 'em' => array(), 'strong' => array(), // <p> and <pre> were not allowed by default in kses.php file; so here we add them. 'pre' => array(), 'p' => array() // and here is the <iframe> tag you mentioned 'iframe' => array( 'title' => true, 'line' => true, 'width' => true, 'height' => true, 'frameborder' => true, 'src' => true, 'webkitallowfullscreen' => true, 'mozallowfullscreen' => true, 'allowfullscreen' => true, ), ); } //Hook this new function to the specific action (init). add_action('init', 'my_allowed_html_tags', 10);
Forum: Plugins
In reply to: [WooCommerce] How do integrate the bank payment gateway with woocommerce?Payment Gateways is not a simple functionality! It is not a basic ask and find answer situation…
That is why there are lots of “premium” extensions for gateway solutions…
Every service has its own limitation, security options, gateway procedures etc.
In order to make a start, you can check the Woo’s documantations about Payment Gateways API:
https://docs.woothemes.com/document/payment-gateway-api/Forum: Plugins
In reply to: [WooCommerce] Only 2 products displaying on category pageActually, there are 3 products in that page of yours as mentioned in that “Showing all 3 products”.
The 3rd one seems to be: Baby Hat Twin Pack
(https://australianbabygifts.com.au/product/baby-hat-twin-pack/)In the styles, it has
.woocommerce ul.products li:last-of-type { display: none;
that is why it is not shown/displayed as the other two.
Try deactivating that css-rule or re-configure it.
Maybe you have mis-configure total products to display in a page / in a row, etc…(PS: You can check that 3rd product is in the page from the source,
or just test it by changing the product sort order to pricing-from-high-to-low)Forum: Plugins
In reply to: [WooCommerce] contact form in the search result if no product found?The search functionality and the search reasults page is basically a WordPress feature; it is not a Woocommerce specific area.
That is why, the proper pages for controlling that feature are inside the “Theme” directories.
So, if you look inside your theme directory, you can see the search-spesific pages.
For example, within the twentyfifteen theme, you can look for these files:
-search.php
-(if any results) content-search.php
-(if no result) content-none.phpThat last one is the page you are looking for; you can edit that page as you wish.
Forum: Plugins
In reply to: [WooCommerce] Custom item not adding to cart when logged out.Maybe it is a restriction with database connection/modifying authorizations.
As far as I can understand from that code snippet of yours,
the user has access to the database, add a new post and upoate it so as to recall and add to cart.
May be your database access is limited to only logged-in users, that is why a logged-out user, a site-visitor can not modify the database and thus can not add to cart!Forum: Plugins
In reply to: [WooCommerce] Product Categories WidgetAs you mentioned,
when you select that option to “show only the children of the current category”,
Woocommerce displays only the current category and its sub-categories,
and do not display the other categories/sub-categories hierarchy.That’s what is is designed for,
and when you select that option, it display as it is programmed to.No problem there!
Forum: Plugins
In reply to: [WooCommerce] How Can i view only products that are all sold?If you are referring that “sold out” info by finishing the stocks, you can check for “Out of Stock” products!
Look for the
Woocommerce>>Reports section.There are 4 types of reports as;
Orders, Customers, Stock and Tax.Inside the Stock section,
there are also 3 types of reports according to the stock quantities:
-Low in Stock
-Out of Stock
-Most StockedThat second tab may be the one you are looking for, products with no stock!
As documented here:
https://docs.woothemes.com/document/reports/Forum: Plugins
In reply to: [WooCommerce] How to show different price of combination of size and colorIt is basically called variations and variable products, not combinations.
Try looking at the Woo documents:
https://docs.woothemes.com/document/variable-product/Forum: Plugins
In reply to: [WooCommerce] Translation not working …Is there a live link / URL for your site to see where those non-translated words are displaying?
What about the “theme” you are using; I mean, which theme is active?
Are you using one of the default themes as twentyfifteen?It will be a good idea too see the working pages online in order to suggest anything.
Forum: Plugins
In reply to: [WooCommerce] Translation not working …First of all, I had to say that I don’t have enough info about the German localization files but I myself also use WooCommerce in another language, other than the default English. That is why I had some similar problems in the past, after some update procedures generally…
Not an exact same situation as yours, but I also had a similar problem: a few non-translated words displaying. They remain unchanged although I change those phrases in every translation file.
After a little search, I realized that the source for my “translation” errors were not the WooCommerce but the the theme. Some of the latest features added to the newest version of the theme were left untranslatable. I mean they were not even found in the translation files that is why they remain unchanged. The ones I thought I transtale were displaying in some other document pages etc.
For a fast solution, I made those changes in the theme files; turning those codes into “translatable / __()” text. And then contacted the theme-author about the situation, he replied that in a hurry adding the new features he forgot to modify/convert the codes for multi-language support and then he made the proper changes in the upcoming version update.After that incident; everytime I activate a new plugin/extension or a new theme, I also had to check the localization files. Because most of the time, plugins/themes had only the default English language files. If lucky enough to have a localization file, it is more than luck to have it “up to date”. That is why I always made my own translations and use my own localization files.
So, to summarize this;
I can advise you to check the other components used in your site settings;
I mean the components other than WooCommerce such as the theme, plugins, extensions or even the code snippets added into functions.php.In order to find a solution, first you have to clarify the source of the problem.
(btw, if there is a live link to your site,
or at least a list like the
Woocommerce>>System Status>>System Report
which shows the theme/plugins you use, it can be more helpful to suggest solutions.)Forum: Plugins
In reply to: [WooCommerce] Placeholder/default image for products?There is a default place-holder within the WooCommerce directory:
…/wp-content/plugins/woocommerce/assets/images/placeholder.pngYou can change that with the one you want to use.
(in order to make it remain same after any woocommerce updates, using a child theme with overriden wocommerce files will be a better option)Also; within most of the woocommerce-themes there is an option for “Custom Placeholder”
Or you can put a code-snippet into your theme’s function.php for changing the default placeholder image with your own as decribed in the Woo documents:
https://docs.woothemes.com/document/change-the-placeholder-image/Forum: Plugins
In reply to: [WooCommerce] How to Change Product IDAnd for the “Order-ID” part,
there is an extension for making it differ from the default-random generated IDs and make it sequential and custom controlled:
https://docs.woothemes.com/document/sequential-order-numbers/Forum: Plugins
In reply to: [WooCommerce] How to Change Product IDWhy you have that 12-digit product-ID at first?
It is too much bigger than it has to be, I mean, for a “post-id”, as the products are only a custom-post-type where it gets its product-id from the post-id (from the wp_posts table, ID value).
By default, that value is “auto-increment”, so why is yours “random” and “12-digit”?Forum: Plugins
In reply to: [WooCommerce] Show just 1 category in sidebar widget, not all productsWill you be a little bit specific about what you want to create?
I mean, which “widget” are you referring to?
And which category do you want to display?
etc.Forum: Plugins
In reply to: [WooCommerce] Product Add OnThere is an extension just for that purpose:
-WooCommerce Product Add-ons
https://www.woothemes.com/products/product-add-ons/Documentations:
https://docs.woothemes.com/document/product-add-ons/Take a look, maybe it is what you need!