Joomla custom component need to create menu - php

I am using Joomla 1.5 . I have developed a custom component that's basically a product catalog but with many custom admin options for the product page and categories. I have also created a custom view. In the component, you can create categories and assign them to the products. After every category I add, I need to go to the Products menu in Joomla admin and add new item and assign the custom view, which is the category view. Basically I need some indications about how can I automate this process, I mean add a new category and on save to auto create the menu item, with the selected view, pass category name. Has anyone done this before ? Maybe some article you know about this...
Thanks.

In joomla , for every action there will be a data entry.
On creating category or creating menu.
Just look what all tables are updated on creating category.
Then you can write a function for automation.
When a category is created , call function and update or insert menu tables for a new menu.
You can do it man.
I saw no answers after 4 hours , thats why am posting something like a pseudo code.

Related

How do I add custom fields into the Brands page in admin back office Prestashop?

I'm trying to add a custom field into the Brands page in the admin back office.
Before this, I successfully added a custom dropdown box in the Category page in the admin back office with hookActionCategoryFormBuilderModifier and used hookActionAfterCreateCategoryFormHandler and hookActionAfterUpdateCategoryFormHandler to handle the form's update and create logic.
However, when I try to do the same with in the Brand page (hookActionBrandFormBuilderModifier) nothing happens. Is there another way to do this? I can't seem to find another hook related to Brands so any help is very much appreciated.
Please try to use:
hookActionManufacturerFormBuilderModifier.
Replace Brand with the Manufacturer as in reality brands, are just manufacturers and wording have changed but not a class name for example.

Displaying Dynamic Shortcodes for Building an e-Commerce Store with WooCommerce?

I have a WooCommerce store with Elementor.
I'm using an Elementor category product page template to generate the product page for each set of products.
I want to use this plug-in to create a table instead of a product grid: https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/
To display the table, the creator of the plug-in provides the following shortcode: [Product Table]. I know you can modify the table to display a specific sub-category, but is it possible to automatically pull the subcategory for each page from a single shortcode? If not, I would need to create a new template for each shortcode...
For example: If I fill in the product id of e.g. category 2 in the shortcode, the Elementor product page template will display the table for this category on every page.
Question
Can I make the subcategory aspect of a shortcode dynamic? Preferably, the X is set automatically to the product's category of which page is being visited.
There is a question very similar to this, but I am a beginner and the .php code they provided was a little hard to understand...
Here's a link to the original question: Insert WooCommerce product id dynamically in shortcode
Any help would be greatly appreciated! Thanks guys.
It looks like this page in the plugin documentation answers your question.

creating custom products page based on new filters in prestashop 1.7 module

I have prestashop 1.7.2.4 installed.
I created a module with a controller, and connected to the ModuleRoutes hook in order to create my own specific route that actually works! :)
in general I created a new set of secondary categories in my prestashop module and I would like to create a products page that will only show the relevat products based on the 2nd category set.
so I created a box on the front page that will search by the 2nd categories sets, and then redirects to the proper friendly url that is catched by the ModuleRoutes hook and properly opens a.. clean page for now :)
how do I actually create a custom products page with cart and everything?
no idea how to move forward from here.
any information regarding the issue would be greatly appreciated.
Thanks

How do i display category module on a custom page in opencart?

I am new in php so i don't know what to do!
For opencart I created a custom page for products.I want to add category module which is provided ready by opencart but i don't know how. Any idea how to add category module to my custom page?
You need to assign your custom page to a layout that displays the categories module.
Alternately you can create a new layout just for your custom page, then add the category module to your new layout.
No need to add a custome page for displaying category. If you entered category from the admin side then front side will be display your category...

Create a custom attribute and add it to category grid view Magento

On some of my products (not all) I need to add a drop down to select from a list of products (varying depending on product). What is the best way to implement this so it get be chosen next to "add to cart" on the category grid on front end?
I did this just before few days. You want to show dropdown of simple products for any configurable products in category page, right? Check below link it will explain you step-by-step on implementing it. Let me know if you have something different in mind.
http://www.catgento.com/adding-configurable-product-options-to-category-list-in-magento/

Categories