Categories
CMS Mastering Development Wordpress

Duplicate COD Payment Method

I need a second replica of the Cash on Delivery Payment Method. Pretty much identical, but with different text info being used and sent with emails. Is this as easy as duplicating the gateway, making some text edits in the PHP file and saving it to my child theme? Is there anything I should be […]

Categories
CMS Mastering Development Wordpress

WooCommerce get default shipping rate & conditions

WooCommerce has by default several shipping methods among which: flat rate, free shipping. The latter can be triggered based on a condition (minimum order for instance). As the base rate and the minimum order price required to get free shipping are displayed in several places in the theme I’m developing, I would like to know […]

Categories
CMS Drupal Mastering Development

Integration/edition of google documents by different users in drupal?

I am involved in allowing different users to edit the same document.doc hot from the drupal, so that they can write about it several users at the same time, I have tried with google documents but I have not managed the edition only to visualize a google document. Who knows any module that allows me […]

Categories
CMS Mastering Development Wordpress

Use wp_remote_get to get JSON instagram feed from public profile

I’m using the curl php library to get the instagram json feed from a given public profile. I want to use wp_remote_get() because on the host I’m using for this project, I don’t have the ability to use curl to request the json feed, I’ve noticed that my actual plugin script will work well on […]

Categories
CMS Drupal Mastering Development

Create cookie after download file

I want to create a cookie after a file download. This is an extension on the existing module: https://www.drupal.org/project/file_utility Each time you click on a download, a popup opens. For me it is fine to have the visitors e-mail address once. Then direct download is possible without showing the popup again on other download pages. […]

Categories
CMS Magento Mastering Development

Optimizing the catalogrule_product_price indexing

We have a situation where catalogrule_product_price table has around 13 000 000 rows. Indexing it takes a lot of time and the main goal is to speed it up and leave more resources for the server. Major hit is coming from the websites and customer groups (52 of them currently and increasing). I was wondering […]

Categories
CMS Magento Mastering Development

How to create filter group for the query to search Via search Criteria

I am trying to build below query using filter groups SELECT `main_table`.* FROM `sales_order` AS `main_table` WHERE( (`updated_at` > ‘2020-04-01 15:11:31’) AND (`updated_at` <= ‘2020-04-02 15:11:31’) ) or ( (`created_at` > ‘2020-04-01 15:11:31’) AND (`created_at` <= ‘2020-04-02 15:11:31’) AND (`store_id` = ‘1’) ) AND (`status` = ‘active’)

Categories
CMS Joomla Mastering Development

Some images (also layout) is broken after installing Joomla in localhost

I have installed my Joomla website in localhost, server address is settle as “localhost”, the site is working fine, I can browse through everything, the problem is that part of the layout is broken, also, there are images which are not loading. I searched for a solution everywhere, which I could not find, since this […]

Categories
CMS Mastering Development Wordpress

How to I know the class or ID of my theme?

I’d like to know the class or ID of the theme menu I’m using. Is there a way to find this value?

Categories
CMS Mastering Development Wordpress

How to print all the inline styles in the WP_Styles instance together with their keys?

I have read this but I see that $wp_styles->registered contains only external stylesheets. I am also trying to understand WP works. I am writing a theme from scratch. I believe that the unwanted inline styles are not caused by plugins (I have only 2 installed: Duplicator and Prevent Browser Caching, both updated). The inline style […]