How to add a custom TPL on whmcs cart - whmcs

We are trying to add a new .TPL file inside our Cart Template, we already did everything but when we try acessing:
site.com/cart?a=newfile
It does not work, is there any way to make WHMCS see the new file as part of the template in question?
I trying to create a custom register page to my template.
Thank you

If your aim is to create a custom registration page, I suggest you to continue with whmcs default templates instead of creating your own template.
In your custom registration page :
-if you want to customize the style,
you can do that by just editing css and html within viewcart.tpl.
-if you want to addcustom field and inputs into your custom registration form,
using in Admin area of whmcs Setup-> Custom Client Fields section,
you can add various of inputs with validation.
-if you want to some action on the registration event,
use this hook to catch the event and take your action,
it will fire whenever someone registers from your website :
http://docs.whmcs.com/Hooks:ClientAreaRegister

Related

Add an upload button to the frontend contact form

I try to add an upload button to the standard contact form in Orocommerce.
I extended the entity as described in
https://doc.oroinc.com/master/backend/entities/attachments/#backend-entity-attachments and the "contact us" entity now shows a button to add an attachment in the backend.
But I still dont't understand how to actually add an upload field to the frontend (preferably in costum forms, too).
How can I change the fields that are available in the frontend?
You can use the form type extension to add a field to the frontend form:
https://symfony.com/doc/4.4/form/create_form_type_extension.html

Shopify: How to make a custom template editable in the theme editor?

I am using the theme "Debut" and I've copied it to make a custom theme out of it.
Then, under "Edit code" I have create a new template for "blog".
Now, when I click on "Customize" button at my template, and the theme editor opens, I have a select box in the top bar where I can select the themes templates, and the pages I've created. But I can't find my custom blog template there, to edit it via the drag & drop editor.
How can I achieve this?
Any help is highly appreciated, thanks!
Once you add any custom template for a blog, product, or collection, they are not available directly into the backend customizer in Shopify.
In backend default templates are available, you need to assign the template to a page, product or blog and then navigate to the desired page, collection or product and blog page into backend using customizer window and then you able to edit the sections and blocks that are added to custom template code.

Shopify: selecting alternate Template for "All Products" page

I am trying to customise my debut theme and am a bit stuck.
I am trying to create an alternate template for the template that shows all my products.
I am able to create an alternate collections.liquid and it also shows up in the admin an it all works fine. But my confusion is, this seems to be the same template for rendering the all my products (not just the products from that collection) too, but how/where select the alternate template for that in the admin?
In other words I am attempting to change the template for collections/all
By default the collections/all uses the collection.liquid file.
As you said you can create a new template collection.custom.liquid that you can use.
The interesting part is that there is no actual collection/all page in the admin. This is the default page that ALL shopify shops have (similar to the homepage/404/cart page). So you don't have access to it from the admin panel by default.
In order to change the ALL collection page you need to create it yourself. Go to your collections admin page and create a new collection with the handle all and this will overwrite the default all collection and you will be able to choose a different template for it.
TLDR; create a new "all" collection in the admin panel and choose the custom template for it.
you have check here collection type grid or list which is enabled from the theme option
collection-template.liquid file that show collection/all item list
if want to change the alternative template goto the template directory. page.collection_list.liquid

How to add custom form before "add to cart" page

I am using Magento 1.7. I need to get input from user so how to add custom form for taking input from user.
Let me explain: when click on any product it display product information. Now there should be a button.On click that button it should show custom form. After submit that form it should redirect to "add to cart" page with all the details of that product and values of custom form fields which is filled by user.
Is there any extension or any other way to do this?
On zennioptical.com the "ORDER" button is located on the product listing template
magento template : /app/design/frontend/base/default/template/catalog/product/list.phtml
The prescription form is actually shown on the product detail page
magento template : /app/design/frontend/base/default/template/catalog/product/view.phtml
To accomplish this in magento create a simple product the add custom option for ('Prescription Type' etc) then you will need to do some custom css and javascript to accomplish that layout

How To create Custom Action

I want to create one custom action such that on that custom action page one button is available,on that button event i want to show hello word on same custom page
Custom Actions generally are used to link to Application Pages which will do the work.
You can include customactions to the Ribbon, to context menus (ECB), or to the Site Settings pages (as well as Central Administration).
The custom action will typically be a custom section with a link to an application page, and within that page you will perform whatever logic you require. You can pass tokens through to the querystring by enclosing them in parenthesis { } such as <UrlAction Url="/_layouts/MyApplicationPage.aspx?ListItem={ItemId}" />
Here's a link to a tutorial on how to create a custom action to appear in the Site Settings page. Google around for simliar tutorials on how to get a custom action to appear in other areas, such as the Ribbon or the ECB.