Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Should fix POS Pro custom templates not found #173

Open
wants to merge 1 commit into
base: 0.4
Choose a base branch
from

Conversation

thomasmery
Copy link
Contributor

this might be fixed in 0.5 but I can't really test right now as I'm developing on a WC 3.0 install and don't have time to setup something proper with 2.6

and also as I needed this I thought it might be useful to 0.4 for now
I can port it to 0.5 if necessary

anyways

seemed like it was not possible to add custom templates for Pos Pro Screens

this fix passes along the pos pro template dir path so it can be used as the string to be replaced when building the theme woocommerce-pos template dir path

without this fix the locate_template_file method would not replace the template dir path as it was set to the woocommerce pos template dir path and not found in the template path passed to the method

seemed like it was not possible to add custom templates for Pos Pro Screens

this fix passes along the pos pro template dir path so it can be used as the string to be replaced when building the theme woocommerce-pos template dir path

without this fix the `locate_template_file` method would not replace the template dir path as it was set to the woocommerce pos template dir path and not found in the template path passed to the method
@jgangso
Copy link

jgangso commented Jun 7, 2017

While doing something similar, I think I recognized the version 0.5 comes with a new implementation of templates so I gave up, but thanks for this @thomasmery - will probably make use of it until o.5 reaches a stable state. 🤓

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants