Jump to content

Custom Module is not outputting correct values in frontend


Recommended Posts

Hello community, 

I'm trying to create a custom module, which creates a new text field in the product's edit-page and then get that information on the frontend.

This is my current state: https://github.com/sebastian-marinescu/pconconfiguratorurl
I initially forked: https://github.com/PululuK/democustomfields17

I managed to add a custom-field to the products-form and also successfully save it to the DB.

Now my problem is, that I get nothing in the frontend. Dumping the object:

{$product.pconconfiguratorurl|@var_dump}

always results in empty values:

array(3) { ["id"]=> NULL ["id_product"]=> NULL ["pconconfiguratorurl_field"]=> NULL }

I'm stuck. I suspect the problem to be somewhere in the getInstanceByProductId-function. 
Does anyone have an idea on how to further investigate this, or directly solve it?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...