build dynamic button in shopping page(woocommerce) using jet engine - wordpress

I work with jet woo builder and i built a template for my products , some of my products are not published yet and some of them are published .
I want to disable add-to-card button and show button with new content when my product is not still published .for example will be published soon . I do not want have 2 template to solve my problem . I prefer to use jet engine . any one has an idea?

Related

Automatic subpages of custom post type pages

I'm creating a WP site for a fitness studio with a bunch of locations. I've set up a custom post type 'studio' for each studio page where we'll enter some custom field content (hours, gallery, etc). That will have urls like site.com/studio/dallas
Each studio also needs schedule and pricing subpages (dallas/scheduke, dallas/pricing). ALL of this content is pulled from an external API so I'm trying to avoid generating all of these extra pages for no reason.
What I'd like to do is have those 2 subpages set up automatically when a parent studio is created. I'll have a custom field on the main studio page to enter a studio ID #, which will tell the subpages what pricing and schedule data to load.
The goal is to make this as simple as possible, avoiding adding 3 pages (1 main, 2 sub) for each studio since there could eventually be hundreds of locations. Bonus points to have those urls work (/dallas/pricing, etc) without actually having a subpage created at all, so it's only a page for each location in the Studio page list and the subpages are just dynamic, maybe using some redirect rules for the subs.
As a visual, sitemap might be..
Chicago
-- Pricing
-- Schedule
Dallas
-- Pricing
-- Schedule
New York
-- Pricing
-- Schedule
But I'd love the actual admin page list to just be Chicago, Dallas, New York...
Thanks in advance everyone!
if anyone stumbles on this, found a solution that works perfectly at
https://www.placementedge.com/blog/create-post-sub-pages/

My portfolio project doesn't show on project page it shows in different page when I add project it asked to view project

I'm using construction theme.When I add a new project or category on my website it doesn't show on my website. Only I can see my project whenever I save my project and it give the option to view your post. but actually it is not. SNL->Projects->Project 4 it must look like this but when I add some project it doesn't show anywhere. Please help!!!
I have a website page called projects. When I post a project or portfolio on my website it doesn't show in project page or anywhere else. Like it's hidden not posted on front view. When I save portfolio Wordpress give tne option to view your post when I click on it, it shows that this project is coming from ABC category. It is showing like this look SNL Construction ->abc -> Project 2. It must look like this SNL construction->project->abc->project 2. That means the portfolio I'm posting is not going anywhere it's creating its own location. I want is when I post an portfolio it must go in PROJECT or OUR WORK page. Like products goes to their own category.

from where add to cart code works

I am new for the wordpress and I am using woocommerce plugin to create an ecommerce website through it.
I want to know that from where the add to cart functionality is being taking place either by template or by some specific function invloved in attempting the add to cart functionality . I am searching for this as I have to add some custom fields other then provided by the woocommerce.
I have to add the field "material type and description" for the product which is being dynamically generated at the client end.and I have to add that dynamically generated values to the cart and also I have to add this to the Database table as well . so that it will be available through the checkout page.
Please hemp me to solve the Issue.
As I have search to display the cart "cart.php template "is available but it is not showing the code for add to cart.

Custom content type template in wordpress

I am new to wordpress and working on a website change. The website was developed by another developer.
The wordpress version is 3.4.1
It has an Advanced field group called 'Films' which has certain custom fields as 'Title', 'Date of release', 'duration' 'trailer video' etc.
The site uses advanced custom fields and has a template as 'content-films.php". This page pulls the content for any film and displays.
I need to develop a pay-per-view page for films where user will be able to watch the entire film after payment through paypal.
I am stuck at the template selection. the 'content-films.php' is a page with films description and a trailer video embed. I need to create one more template to implement the pay-per-view page for each film.
I could not find any documentation on the implementation of templates as 'content-films.php' . I found some for single-post_type.php but my site is not using that.
Please help me in the approach on which template should I create to implement the pay-per-view page for films
You should create a page template. Name it anything you want, for example test.php, and put it in the theme folder In the beginning of this file you will have to put a comment which tells wordpress that this is a page template.
<?php
/*
Template Name: Test
*/
?>
Then create a new page from the wordpress admin and assign it to the template you just created (dropdown on the right side of the editor).

Drupal 7 Content type dropdown language selection

I am newer in drupal , I am trying to create a content type with multi lingual support . I have the modules and which translate all the things in my site . But when I am trying to translate the content type from admin , there is no dropdown menu for language selection .
First of all you need to have enabled some 'multi lingual modules'
like locale,content translation , languages and set up their options .
For example you need to configure the languages you'll be using here :
admin/config/regional/language
and set up the extra language settings e.g path here admin/config/regional/language/configure
then you need to go to admin/structure/types/manage/[my-content-type] or if you want the page content type to be translated (default drupal's content type) go here admin/structure/types/manage/page ( page is your current content type )
and click at the 'Publishing Options' Tab and select Multilingual support -> Enabled, with translation.
After this you'll see next to every page-node display the new 'translation tab'
Then you need to download this life savior module :)
http://drupal.org/project/i18n

Resources