Limit tags to a pre-defined list in bbpress?

Create a plugin using the code below: <?php /* Plugin Name: Restrict Topic Tags Description: Restricts tags to a pre-defined list. Author: _mr_raptor_ Version: 0.1 */ $allowed_tags = array( ‘test’, ‘test2’, ); function restrict_topic_tags_form( $args = null ) { $defaults = array( ‘topic’ => 0, ‘submit’ => __(‘Add »’), ‘list_id’ => ‘tags-list’ ); $args =… Continue reading Limit tags to a pre-defined list in bbpress?

Published
Categorized as Wordpress

Solutions to the Cloudways Server CPU hike

Verified the issues on the server and added some bot blockers to avoid website traffic. Added Robots.txt file exceptions which include having the following permissions 1. Disallow: /app/ 2. Disallow: /bin/ 3. Disallow: /dev/ 4. Disallow: /lib/ 5. Disallow: /phpserver/ 6. Disallow: /pub/ This is included in the basic theme of Luma here we have… Continue reading Solutions to the Cloudways Server CPU hike

Published
Categorized as Magento

Magento 2: upload file in frontend

Add menu in Dashboard customer_account.xml in this route_nam_controller_name_action_name.xml layout file call this phtml file ADD this HTML to your .phml file which one used for file upload now user select file and upload here and when user submits button click then ACTION PATH controller call.put this code into your this controller file.

Displaying Related Items in the Shopping Cart-Site Builder

Go to Commerce > Site Builder > Tabs. Click Edit next to Shopping Cart. On the Related Items subtab, select an item to display as a suggested item to purchase in the shopping cart.Important- The Advanced Site Customization feature is required for Related Items to display in the shopping cart.Click Add Multiple to add several items quickly. Click Save.

Customizing logout-Site builder

When users click the Log Out link in the upper left of the NetSuite page, they are redirected to the custom HTML page . Go to Setup > Company > General Preferences. Click the Centers subtab to select the appropriate center. Enter the URL for the Log Out Landing Page.

Strike through pricing in Qunatity pricing items.

For Quantity pricing items, the comparison pricing displayed is strike-through pricing (the customer’s price level next to the struck-through default price) until the customer selects an item quantity that passes a quantity discounting threshold. At which point, the comparison pricing changes to the price of the item at the previous price quantity threshold. For example,… Continue reading Strike through pricing in Qunatity pricing items.

Using React JS to save the values in URL params

We can set the values in the URL as params for saving it. By using this even after render the saved values will be there.Created a test-component for Filter section. By using these filters we are filtering the Products on the basis of Colors, Sizes, Price, Item Name. Here useParams in code const useParams =… Continue reading Using React JS to save the values in URL params