generate_order_form
#
Functions and classes for generating order forms given order information packaged as a DataFrame extracted using plkit.extract_orders()
Classes:
-
Product–Class to hold information about a specific product
Functions:
-
generate_product_order–Generate a DataFrame of product-specific order information,
-
generate_product_personalisations–Generate a DataFrame of product-specific order personalisations,
Product
#
Class to hold information about a specific product
Parameters#
name : str Name of the particular product
Returns#
None
Methods:
-
update_count–Update the product count given a specific sizing
-
update_product–Update the product specifications given a specific order
Source code in plkit/generate_order_form.py
update_count
#
Update the product count given a specific sizing
Parameters#
sizing : str Sizing for which to update the count quantity : int, optional Item count to update
Returns#
None
Source code in plkit/generate_order_form.py
update_product
#
Update the product specifications given a specific order
Parameters#
order : class Instance of the Order class which is used to update the product information
Returns#
None
Source code in plkit/generate_order_form.py
generate_product_order
#
Generate a DataFrame of product-specific order information, given a DataFrame of orders
Parameters#
df_orders: _pd.DataFrame The order details converted to a pandas DataFrame
Returns#
df_products: _pd.DataFrame Full order details for every product, completed with the orders contained in df_orders
Source code in plkit/generate_order_form.py
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 | |
generate_product_personalisations
#
Generate a DataFrame of product-specific order personalisations, given a DataFrame of orders
Parameters#
df_orders: _pd.DataFrame The order details converted to a pandas DataFrame
Returns#
df_personal: _pd.DataFrame Full personalisation details for every product, completed with the orders contained in df_orders