Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author grfx

    (@grfx)

    I’m very glad you like it. So far your site is looking very good.

    Regarding your first wish I’m a bit confused still. What exactly are you trying to achieve on the front page?

    Regarding your title issue — would you mind sending me an image to leo [at] grfx.co so I can see what metadata field it is under? There are different areas — xmp, exif, etc. I’m going to build in a more thorough check of all these areas so that metadata is not missed.

    Thread Starter uuggoo

    (@uuggoo)

    Hi Leo.

    Let me start by thanking Your support. ??

    I’ll now try to maximize my english, attempting to explain what I pretend to do.

    For now, the website visitors, if they like one photograph/image, they have to click on it and enter the image/product page/post to add it to the cart, selecting the license type. But, by doing it, the visitors select one image at a time.

    A friend of mine is getting married. He wants to give his photographer a platform for image upload (so far so good, it is done and working). After that, my friend the fiancé will give the website URL to his wedding invitees so they can select and order some photographies prints, instead of download them.

    We want is to add the images to the cart in the store/shop loop page, using the woocommerce product AJAX button funcionality, without having to enter the image/product page/post. All products shoul behave like the last one listed in https://isami.iminente.net/

    The problem, as far as I can see, is the product type attribuited to the image “Stock Image” instead of “Simple Product”, that, somehow, is blocking/overriding the AJAX button. The “grfx” product type doesn’t activate the AJAX button, but the woocommerce type does.

    Do You have a solution? Thanks a lot!

    Thread Starter uuggoo

    (@uuggoo)

    Done, after editing plugin PHP files. ??

    Plugin Author grfx

    (@grfx)

    I can see clearly now! ??

    I did not consider such a feature would be needed, hence I never noticed when it disappeared (possibly due to the custom nature of the image product)

    If you share your edit I can possibly include it in the next update so you don’t have to keep redoing it.

    I’m glad everything is working for you.

    Thread Starter uuggoo

    (@uuggoo)

    Well, I need this feature for photography print orders (only), instead of download or virtual sell, like a ordinary physic product.

    All I’ve donne was edit the plugin file “\grfx\includes\woocommerce\product-types\class-wc-product-stock-image.php” and turn off (by comment) some code:

    1. To add one or more prints of one photo (previously limited to one, making subtotal difer from total)

    function grfx_minicart_total($cart_subtotal, $compound, $cart){
        return $cart_subtotal;
    }

    2. Prevent default virtual items construction

    public function __construct( $product ) {
        //$this->virtual = 'yes';
        //...
    }

    At public function create_initial_product() class at “\grfx\includes\woocommerce\class-product-creator.php”:

    1. To activate AJAX button ad to cart in product listing/grid, for faster image selection:

    //update_post_meta($post_id, 'grfx_finish_product_type', 'stock_image');
    	update_post_meta($post_id, 'grfx_finish_product_type', 'simple');

    2. To name an product with the filename, when no metadata available, instead of “-” caracter

    //!empty( $metadata->Title )    ? $this->product_title = $metadata->Title         : $this->product_title = '-';
    				!empty( $metadata->Title )    ? $this->product_title = $metadata->Title         : $this->product_title = $this->file_name;

    At public function set_stock_image_data() class:

    //		$this->set_to_meta( '_downloadable', 'yes' );
    		$this->set_to_meta( '_downloadable', 'no' );
    		//is virtual product
    //		$this->set_to_meta( '_virtual', 'yes' );
    		$this->set_to_meta( '_virtual', 'no' );
    //		$this->set_to_meta( '_download_limit', get_option( 'grfx_download_limit', '3' ) );
    		$this->set_to_meta( '_download_limit', '' );
    //		$this->set_to_meta( '_download_expiry', get_option( 'grfx_download_expiry', '7' ) );

    Nothing more, I think… I recognise the unorthodox solutions, but, in such short window of time, works. :/

    Maybe could some buttons on plugin configuration section activate/deactivate these functionalities.

    Anyway, now, my website works well for my needs.

    Thank You! ??

    Plugin Author grfx

    (@grfx)

    I think I missed this update.

    Can you elaborate a little more on how this has benefited you? If I can include these updates I will.

    Thread Starter uuggoo

    (@uuggoo)

    Sure I can.

    In this moment, the website visitors can select imagens from a grid-style organization without enter the product page when selecting each of them, making the process much quicker.
    Also each imagem is processed like a conventional product – remember: all I need is a list to make prints of the selections; later those lists will be delivered via postal service.

    Try it: https://foto.iminente.net/index.php/album-casamento/

    Plugin Author grfx

    (@grfx)

    This is wonderful! I’ll test these and see about including them in next release.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Image/product title and images mass selection’ is closed to new replies.