Self generate Woocommerce Variable Products download links - php

I'm developing a Woocommerece shop in Wordpress with Themify and running this as a photo libary. The goal is that anyone with access can select the right file-sized images for there job.
I'm using variable products to "sell" downloadable content in 3 sizes, Digital/Print and Professional Print. My aim if possible is that when you upload a high-res image(professional print) the print/digital print sections are automatically filled by sourcing the large/medium file types generated by Wordpress on upload.
Does anyone have any suggestions how to tackle this? I'm a little out of my depth on this one.

Related

Custom WordPress post types NO PLUGIN

So I been tasked with creating two custom post types for WordPress as an exercise. Was wondering what direction I should go with this. Check it out below:
Part 1
Create a custom post type called Products
A Product needs fields in the admin for Title, Link, Image, Background-color
Take each of the images from the product-images directory, and create a product from them.
Each one should have:
a different background-color
a different title
Display these Products on the home page, and make sure that it looks good in every screen size. You can refer to the screenshot called products, in the screenshots directory, to see how it should look.
Part 2
Create a custom post type called videos
A video only needs fields in the admin for Name, youtube-id
Take each of the videos listed in the text file videos-list and create a video from them.
On the home page, below the products section, create a new section and that shows only one video and a list of text links for the other videos. Refer to the screenshot called videos, also in the screenshots directory to see how it should look.
When you click the link to another video in the list, the video displaying on the home page should change and become the new video
Can anyone give me some direction on how to go about this. I understand how to create a custom post type. What I don't seem to get is how to create fields for a bg color and image. For the video section I am further confused as to how to actually create the section with links on the right and a video that changes to the left once the appropriate link has been clicked.
I'm not a WordPress guru by any means so any help on these 2 problems would be greatly appreciated.

Exporting wordpress posts with gallery?

so I want to export WordPress posts to pdf or doc and I accomplished that using plugins like Aspose pdf/doc exporter, but I faced the problem previous it specialist uploaded images into gallery and because of that, those plugins can't find any pictures inside post and because of this my post gets exported just as simple text. Of course I can do it manually but that would take tons of my time so is there any way to accomplish this?

how to insert a description in wordpress gallery popup?

I am using WordPress 4.2.2 and i need to show the image description in a gallery popup, like a light box view. In the gallery if i click a images i need to show the descriptions in a popup. In that popup i can edit the description and save to database and show the updated description in the same popup. I using the enfold theme currently. Is it possible to make this? Is there any plugins or can any one guide me to write it. Bellow i have given the example popup of gallery. Thanks in advance.
try this plugin, It provides a powerful engine for uploading and managing galleries of images, with the ability to batch upload, import meta data, add/delete/rearrange/sort images, edit thumbnails, group galleries into albums, and more
https://wordpress.org/plugins/nextgen-gallery/

Wordpress page dynamic content

i'm hoping someone can assist, with setting up a dynamic page in wordpress
We currently have thousands of images but i don't want these setup as posts, tho i still want them within the wordpress site, so I'm wondering is it possible to create a page domain.com/newpage and if accessed via domain.com/newpage?funny it would display the image funny.jpg from another directory on the server
Obviously id need to setup a custom page template which i can do but im struggling with the dynamic code bit
any help is appreciated
You can add images under Media in Admin. They would not be linked to a post but they can be used throughout the site.

Php image resize/thumbnail approach for (Wordpress)

My goal is to create a website for a client that needs the site to be heavily based as image galleries.
I am making the site through Wordpress so the client can upload the pictures through the friendly wordpress admin panel and then the site will display a parent image for the gallery and several thumbnails (scrolling with Jquery).
My question is for advice on good ways to resize the images as thumbnails. Currently I have some "hack-ish" code that simply changes the image dimensions, but as far as I know this doesn't reduce loading time and is quite inefficient.
Any ides on how to do it better? Possibly by using PHP GD? Thanks!
Wordpress already does this on successful upload.
Besides creating the standard set of thumbnail, medium and large sizes, you can also enter custom sizes to create under the Settings -> Media section of the dashboard.
You can also add custom sizes in plugins and / or themes. See http://codex.wordpress.org/Function_Reference/add_image_size
Timthumb might be a good solution for this. The built-in wordpress media settings can only be set once for three different image options (thumbnail, medium and large). If you change the settings, anything already uploaded won't be readjusted. Most of the time this is acceptable, but for a photo heavy site, you might need more size options and dynamic adjustments. This simple php script will create any size image and save a cache copy for quick delivery. Lots of WordPress themes use it.
http://code.google.com/p/timthumb/
-- EDIT --
So, you know that advice about TimThumb I gave yesterday? Well, check out the big news today. Just make sure you're using the latest version.
http://ma.tt/2011/08/the-timthumb-saga/
WordPress his this nifty function tucked away image_resize, I'd recommend that if your looking to do this on the code size in one location. I have a small "library" I wrote to "help" with handling file uploads in WordPress, the git repo is here.

Categories