Home Forums WoodMart support forum Category page title background preview works but is not saved

Category page title background preview works but is not saved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #728219

    tarmovaling
    Participant

    Hello,

    We are using WoodMart 8.5.7 with WooCommerce and WPML on Centralsun.com.

    We have an issue with the native WooCommerce product category field “Category page title background”.

    Steps to reproduce:

    Open a WooCommerce product category for editing.
    In “Category page title background”, click Upload and select an existing image from the Media Library.
    Click “Use this file”.
    The selected image preview appears correctly in the field.
    Click Update.
    Reload the product category edit page.
    The image field is empty again and the background image has not been saved.

    We reproduced this on a real category using attachment ID 360877.

    We also checked the WoodMart 8.5.7 admin JavaScript. The uploadControl() callback in options.js receives a valid WordPress attachment object and runs:

    $inputID.val(attachment.id).trigger(‘change’);

    $inputURL.val(attachment.url).trigger(‘change’);

    The preview is successfully created from attachment.url, so the WordPress media selection itself works.

    We additionally confirmed:

    there is only one title_image[id] input and one title_image[url] input;
    both inputs are inside the correct form#edittag;
    both inputs are enabled;
    WoodMart options.js and admin.js are each loaded only once;
    there are no relevant JavaScript console errors;
    the attachment ID and URL are correctly available in the WordPress Media Library;
    another existing product category already has a previously saved title_image and renders it correctly on the frontend.

    Environment:

    WoodMart 8.5.7
    WooCommerce
    WPML Multilingual CMS 4.9.6
    WPML Media Translation 3.1.2

    Could you please confirm whether this is a known issue with WoodMart 8.5.7 and whether there is an official fix, patch, or newer WoodMart version that resolves the “Category page title background” saving issue?

    We would prefer to keep using WoodMart’s native category background functionality rather than add a custom JavaScript or database workaround.

    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #728224

    tarmovaling
    Participant

    I have attached a screenshot taken immediately before clicking Update. It shows that the image was successfully selected in the native WoodMart “Category page title background” field and that the preview was present.

    I then clicked Update and performed a fresh reload of the category edit page. After the reload, the “Category page title background” field was empty again. Unfortunately, the automated screenshot capture failed after the first screenshot, so I only have the “before Update” screenshot attached. The failed persistence after Update + fresh reload was reproduced and verified twice.

    Attachments:
    You must be logged in to view attached files.
    #728245

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please deactivate all the 3rd-party plugins and activate only the theme-required plugins on the site, and then check the issue. I am sure your issue will be solved. Then activate the 3rd party plugins one by one and check which plugin is creating the issue for you.

    Otherwise, if the issue still exists, then keep the 3rd party plugins deactivated and share the WP admin login details of your site so I can check and give you a possible solution.

    Best Regards

Viewing 3 posts - 1 through 3 (of 3 total)