This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Duplicate a content

How to enable option to duplicate a content under /admin/content page

Basically under /admin/content in the content listing section there are options for edit , translate and delete.

I want to introduce an option -duplicate to duplicate any content with ease.

How to do it?

Suggestions are welcome

Google Merchant Center integration

I'm trying to search a module for Google Merchant Center integration. Previously, i tried with Google Feeds module but didn't have results.

Do you know about other modules or differents ways to do that?

Thanks in advance for the help.

Problem with cookie and session cache

I have a problem with the Drupal cache. The cache remembers session and cookie values. Everything works fine if I am logged into the backend or if I turn off the Drupal cache completely. Is it possible to use php cookies and they will not be cached if I am not a logged in user? The problem is with Drupal 8.

Temporarily changing $route_match to a node path

I have some code that runs on an admin page controller. So if I do $route_match = \Drupal::routeMatch(); then it relates to that admin page. However, I want to Temporarily change the value of \Drupal::routeMatch() so that it uses the path of a node (for example node/1).

With Drupal 7 I could simply change $_GET['q'] = 'node/1', for example, do my logic and switch it back to the original path afterwards.

How to display the rendered entity of a store in a modal window ?

I created a module for my marketplace (several stores and owners). It displays a required checkbox, in the purchase funnel. With a link to the general conditions of sale which are rendered in a modal window.

This module works perfectly.

MY PROBLEM :

I no longer want to display the CGV page in the modal window.

I want to display the rendered entity of the store with the CGV display mode.

Can you reply with the correct code ? Thank you

How do I flag a store when an input method is used ?

Here is my full code.

  1. I want to automatically flag the store with the payment_gateways flag when the commerce_store_payment_gateways_form form is submitted.

  2. I want to automatically flag the store with the shipping_methods flag when the commerce_store_shipping_methods_form form is submitted.

I tested this code and it doesn't work for stores :

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions